]> git.ipfire.org Git - thirdparty/cups.git/blame - examples/get-printers-printer-id.test
Changelog
[thirdparty/cups.git] / examples / get-printers-printer-id.test
CommitLineData
409f5497
MS
1# Get printer attributes using CUPS-Get-Printers
2#
3# Usage:
4#
5# ipptool -t -d printer_id=N ipp://localhost:port/ get-printers-printer-id.test
6#
7{
8 # The name of the test...
9 NAME "CUPS-Get-Printers w/printer-id"
10
11 # The resource to use for the POST
12 # RESOURCE /admin
13
14 # The operation to use
15 OPERATION CUPS-Get-Printers
16
17 # Attributes, starting in the operation group...
18 GROUP operation
19 ATTR charset attributes-charset utf-8
20 ATTR language attributes-natural-language en
21 ATTR integer printer-id $printer_id
22
23 # What statuses are OK?
24 STATUS successful-ok
25 EXPECT printer-name
26 DISPLAY printer-name
27}