xref: /aosp_15_r20/external/libcups/examples/get-printers-printer-id.test (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1*5e7646d2SAndroid Build Coastguard Worker# Get printer attributes using CUPS-Get-Printers
2*5e7646d2SAndroid Build Coastguard Worker#
3*5e7646d2SAndroid Build Coastguard Worker# Usage:
4*5e7646d2SAndroid Build Coastguard Worker#
5*5e7646d2SAndroid Build Coastguard Worker#   ipptool -t -d printer_id=N ipp://localhost:port/ get-printers-printer-id.test
6*5e7646d2SAndroid Build Coastguard Worker#
7*5e7646d2SAndroid Build Coastguard Worker{
8*5e7646d2SAndroid Build Coastguard Worker	# The name of the test...
9*5e7646d2SAndroid Build Coastguard Worker	NAME "CUPS-Get-Printers w/printer-id"
10*5e7646d2SAndroid Build Coastguard Worker
11*5e7646d2SAndroid Build Coastguard Worker	# The resource to use for the POST
12*5e7646d2SAndroid Build Coastguard Worker	# RESOURCE /admin
13*5e7646d2SAndroid Build Coastguard Worker
14*5e7646d2SAndroid Build Coastguard Worker	# The operation to use
15*5e7646d2SAndroid Build Coastguard Worker	OPERATION CUPS-Get-Printers
16*5e7646d2SAndroid Build Coastguard Worker
17*5e7646d2SAndroid Build Coastguard Worker	# Attributes, starting in the operation group...
18*5e7646d2SAndroid Build Coastguard Worker	GROUP operation
19*5e7646d2SAndroid Build Coastguard Worker	ATTR charset attributes-charset utf-8
20*5e7646d2SAndroid Build Coastguard Worker	ATTR language attributes-natural-language en
21*5e7646d2SAndroid Build Coastguard Worker	ATTR integer printer-id $printer_id
22*5e7646d2SAndroid Build Coastguard Worker
23*5e7646d2SAndroid Build Coastguard Worker	# What statuses are OK?
24*5e7646d2SAndroid Build Coastguard Worker	STATUS successful-ok
25*5e7646d2SAndroid Build Coastguard Worker	EXPECT printer-name
26*5e7646d2SAndroid Build Coastguard Worker	DISPLAY printer-name
27*5e7646d2SAndroid Build Coastguard Worker}
28