xref: /aosp_15_r20/external/libcups/examples/ipp-backend.test (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1*5e7646d2SAndroid Build Coastguard Worker# Get printer attributes using get-printer-attributes
2*5e7646d2SAndroid Build Coastguard Worker{
3*5e7646d2SAndroid Build Coastguard Worker	# The name of the test...
4*5e7646d2SAndroid Build Coastguard Worker	NAME "Get printer attributes using get-printer-attributes"
5*5e7646d2SAndroid Build Coastguard Worker
6*5e7646d2SAndroid Build Coastguard Worker	# The resource to use for the POST
7*5e7646d2SAndroid Build Coastguard Worker	# RESOURCE /admin
8*5e7646d2SAndroid Build Coastguard Worker
9*5e7646d2SAndroid Build Coastguard Worker	# The operation to use
10*5e7646d2SAndroid Build Coastguard Worker	OPERATION get-printer-attributes
11*5e7646d2SAndroid Build Coastguard Worker
12*5e7646d2SAndroid Build Coastguard Worker	# Attributes, starting in the operation group...
13*5e7646d2SAndroid Build Coastguard Worker	GROUP operation
14*5e7646d2SAndroid Build Coastguard Worker	ATTR charset attributes-charset utf-8
15*5e7646d2SAndroid Build Coastguard Worker	ATTR language attributes-natural-language en
16*5e7646d2SAndroid Build Coastguard Worker	ATTR uri printer-uri $uri
17*5e7646d2SAndroid Build Coastguard Worker	ATTR keyword requested-attributes com.apple.print.recoverable-message,copies-supported,document-format-supported,marker-colors,marker-levels,marker-message,marker-names,marker-types,printer-is-accepting-jobs,printer-state,printer-state-message,printer-state-reasons
18*5e7646d2SAndroid Build Coastguard Worker
19*5e7646d2SAndroid Build Coastguard Worker	# What statuses are OK?
20*5e7646d2SAndroid Build Coastguard Worker	STATUS successful-ok
21*5e7646d2SAndroid Build Coastguard Worker	STATUS successful-ok-ignored-or-substituted-attributes
22*5e7646d2SAndroid Build Coastguard Worker}
23