xref: /aosp_15_r20/external/libcups/examples/get-job-attributes.test (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1*5e7646d2SAndroid Build Coastguard Worker# Test get-job-attributes by sending a print job, getting the attributes,
2*5e7646d2SAndroid Build Coastguard Worker# and cancelling it.
3*5e7646d2SAndroid Build Coastguard Worker{
4*5e7646d2SAndroid Build Coastguard Worker	# The name of the test...
5*5e7646d2SAndroid Build Coastguard Worker	NAME "Get job info with get-job-attributes"
6*5e7646d2SAndroid Build Coastguard Worker
7*5e7646d2SAndroid Build Coastguard Worker	# The resource to use for the POST
8*5e7646d2SAndroid Build Coastguard Worker	# RESOURCE /admin
9*5e7646d2SAndroid Build Coastguard Worker
10*5e7646d2SAndroid Build Coastguard Worker	# The operation to use
11*5e7646d2SAndroid Build Coastguard Worker	OPERATION get-job-attributes
12*5e7646d2SAndroid Build Coastguard Worker
13*5e7646d2SAndroid Build Coastguard Worker	# Attributes, starting in the operation group...
14*5e7646d2SAndroid Build Coastguard Worker	GROUP operation
15*5e7646d2SAndroid Build Coastguard Worker	ATTR charset attributes-charset utf-8
16*5e7646d2SAndroid Build Coastguard Worker	ATTR language attributes-natural-language en
17*5e7646d2SAndroid Build Coastguard Worker	ATTR uri job-uri $uri
18*5e7646d2SAndroid Build Coastguard Worker#	ATTR keyword requested-attributes job-media-sheets-completed,job-state
19*5e7646d2SAndroid Build Coastguard Worker
20*5e7646d2SAndroid Build Coastguard Worker	# What statuses are OK?
21*5e7646d2SAndroid Build Coastguard Worker	#STATUS successful-ok
22*5e7646d2SAndroid Build Coastguard Worker	#STATUS successful-ok-ignored-or-substituted-attributes
23*5e7646d2SAndroid Build Coastguard Worker
24*5e7646d2SAndroid Build Coastguard Worker	# What attributes do we expect?
25*5e7646d2SAndroid Build Coastguard Worker	EXPECT job-uri
26*5e7646d2SAndroid Build Coastguard Worker	EXPECT job-state
27*5e7646d2SAndroid Build Coastguard Worker}
28