4 # Verify that the IPP job operations work.
7 # The name of the test...
8 NAME "Print PostScript Job to Test1"
10 # The operation to use
12 RESOURCE /printers/Test1
14 # The attributes to send
16 ATTR charset attributes-charset utf-8
17 ATTR language attributes-natural-language en
18 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
19 ATTR name requesting-user-name $user
23 # What statuses are OK?
26 # What attributes do we expect?
27 EXPECT attributes-charset
28 EXPECT attributes-natural-language
32 # The name of the test...
33 NAME "Get Job Attributes"
35 # The operation to use
36 OPERATION get-job-attributes
39 # The attributes to send
41 ATTR charset attributes-charset utf-8
42 ATTR language attributes-natural-language en
43 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
44 ATTR integer job-id $job-id
46 # What statuses are OK?
49 # What attributes do we expect?
50 EXPECT attributes-charset
51 EXPECT attributes-natural-language
57 # The name of the test...
58 NAME "Print JPEG Job to Test2"
60 # The operation to use
62 RESOURCE /printers/Test2
64 # The attributes to send
66 ATTR charset attributes-charset utf-8
67 ATTR language attributes-natural-language en
68 ATTR uri printer-uri $method://$hostname:$port/printers/Test2
69 ATTR name requesting-user-name $user
72 ATTR uri notify-recipient testnotify
76 # What statuses are OK?
79 # What attributes do we expect?
80 EXPECT attributes-charset
81 EXPECT attributes-natural-language
83 EXPECT notify-subscription-id
86 # The name of the test...
87 NAME "Get Job Attributes"
89 # The operation to use
90 OPERATION get-job-attributes
93 # The attributes to send
95 ATTR charset attributes-charset utf-8
96 ATTR language attributes-natural-language en
97 ATTR uri printer-uri $method://$hostname:$port/printers/Test2
98 ATTR integer job-id $job-id
100 # What statuses are OK?
103 # What attributes do we expect?
104 EXPECT attributes-charset
105 EXPECT attributes-natural-language
111 # The name of the test...
112 NAME "Print Text Job to Test1"
114 # The operation to use
116 RESOURCE /printers/Test1
118 # The attributes to send
120 ATTR charset attributes-charset utf-8
121 ATTR language attributes-natural-language en
122 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
123 ATTR name requesting-user-name $user
127 # What statuses are OK?
130 # What attributes do we expect?
131 EXPECT attributes-charset
132 EXPECT attributes-natural-language
136 # The name of the test...
137 NAME "Print PDF Job to Test1"
139 # The operation to use
141 RESOURCE /printers/Test1
143 # The attributes to send
145 ATTR charset attributes-charset utf-8
146 ATTR language attributes-natural-language en
147 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
148 ATTR name requesting-user-name $user
152 # What statuses are OK?
155 # What attributes do we expect?
156 EXPECT attributes-charset
157 EXPECT attributes-natural-language
161 # The name of the test...
162 NAME "Print Image Job to Test1"
164 # The operation to use
166 RESOURCE /printers/Test1
168 # The attributes to send
170 ATTR charset attributes-charset utf-8
171 ATTR language attributes-natural-language en
172 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
173 ATTR name requesting-user-name $user
177 # What statuses are OK?
180 # What attributes do we expect?
181 EXPECT attributes-charset
182 EXPECT attributes-natural-language
186 # The name of the test...
187 NAME "Hold Job on Test1"
189 # The operation to use
191 RESOURCE /printers/Test1
193 # The attributes to send
195 ATTR charset attributes-charset utf-8
196 ATTR language attributes-natural-language en
197 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
198 ATTR integer job-id $job-id
199 ATTR name requesting-user-name $user
201 # What statuses are OK?
204 # What attributes do we expect?
205 EXPECT attributes-charset
206 EXPECT attributes-natural-language
209 # The name of the test...
210 NAME "Release Job on Test1"
212 # The operation to use
213 OPERATION release-job
214 RESOURCE /printers/Test1
216 # The attributes to send
218 ATTR charset attributes-charset utf-8
219 ATTR language attributes-natural-language en
220 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
221 ATTR integer job-id $job-id
222 ATTR name requesting-user-name $user
224 # What statuses are OK?
227 # What attributes do we expect?
228 EXPECT attributes-charset
229 EXPECT attributes-natural-language
232 # The name of the test...
233 NAME "Get Job List on Test1"
235 # The operation to use
237 RESOURCE /printers/Test1
239 # The attributes to send
241 ATTR charset attributes-charset utf-8
242 ATTR language attributes-natural-language en
243 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
245 # What statuses are OK?
248 # What attributes do we expect?
249 EXPECT attributes-charset
250 EXPECT attributes-natural-language
253 # The name of the test...
256 # The operation to use
260 # The attributes to send
262 ATTR charset attributes-charset utf-8
263 ATTR language attributes-natural-language en
264 ATTR uri job-uri $method://$hostname:$port/jobs
266 # What statuses are OK?
269 # What attributes do we expect?
270 EXPECT attributes-charset
271 EXPECT attributes-natural-language
277 # The name of the test...
280 # The operation to use
284 # The attributes to send
286 ATTR charset attributes-charset utf-8
287 ATTR language attributes-natural-language en
288 ATTR uri job-uri $method://$hostname:$port/jobs/$job-id
289 ATTR name requesting-user-name $user
291 # What statuses are OK?
294 # What attributes do we expect?
295 EXPECT attributes-charset
296 EXPECT attributes-natural-language