2 # Verify that the IPP job operations work.
4 # Copyright © 2007-2013 by Apple Inc.
5 # Copyright © 2001-2006 by Easy Software Products. All rights reserved.
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more
11 # The name of the test...
12 NAME "Print PostScript Job with bad job-sheets value to Test1"
14 # The operation to use
16 RESOURCE /printers/Test1
18 # The attributes to send
20 ATTR charset attributes-charset utf-8
21 ATTR language attributes-natural-language en
22 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
23 ATTR name requesting-user-name $user
24 ATTR name job-sheets "none\,none"
28 # What statuses are OK?
29 STATUS client-error-bad-request
32 # The name of the test...
33 NAME "Print PostScript Job to Test1"
35 # The operation to use
37 RESOURCE /printers/Test1
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 name requesting-user-name $user
48 # What statuses are OK?
51 # What attributes do we expect?
52 EXPECT attributes-charset
53 EXPECT attributes-natural-language
57 # The name of the test...
58 NAME "Get Job Attributes"
60 # The operation to use
61 OPERATION get-job-attributes
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/Test1
69 ATTR integer job-id $job-id
71 # What statuses are OK?
74 # What attributes do we expect?
75 EXPECT attributes-charset
76 EXPECT attributes-natural-language
82 # The name of the test...
83 NAME "Print JPEG Job to Test2"
85 # The operation to use
87 RESOURCE /printers/Test2
89 # The attributes to send
91 ATTR charset attributes-charset utf-8
92 ATTR language attributes-natural-language en
93 ATTR uri printer-uri $method://$hostname:$port/printers/Test2
94 ATTR name requesting-user-name $user
97 ATTR uri notify-recipient-uri testnotify:///
101 # What statuses are OK?
104 # What attributes do we expect?
105 EXPECT attributes-charset
106 EXPECT attributes-natural-language
108 EXPECT notify-subscription-id
111 # The name of the test...
112 NAME "Get Job Attributes"
114 # The operation to use
115 OPERATION get-job-attributes
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/Test2
123 ATTR integer job-id $job-id
125 # What statuses are OK?
128 # What attributes do we expect?
129 EXPECT attributes-charset
130 EXPECT attributes-natural-language
136 # The name of the test...
137 NAME "Print Text 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 PDF 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
176 ATTR keyword job-hold-until weekend
180 # What statuses are OK?
183 # What attributes do we expect?
184 EXPECT attributes-charset
185 EXPECT attributes-natural-language
189 # The name of the test...
190 NAME "Hold Job on Test1"
192 # The operation to use
194 RESOURCE /printers/Test1
196 # The attributes to send
198 ATTR charset attributes-charset utf-8
199 ATTR language attributes-natural-language en
200 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
201 ATTR integer job-id $job-id
202 ATTR name requesting-user-name $user
204 # What statuses are OK?
207 # What attributes do we expect?
208 EXPECT attributes-charset
209 EXPECT attributes-natural-language
212 # The name of the test...
213 NAME "Release Job on Test1"
215 # The operation to use
216 OPERATION release-job
217 RESOURCE /printers/Test1
219 # The attributes to send
221 ATTR charset attributes-charset utf-8
222 ATTR language attributes-natural-language en
223 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
224 ATTR integer job-id $job-id
225 ATTR name requesting-user-name $user
227 # What statuses are OK?
230 # What attributes do we expect?
231 EXPECT attributes-charset
232 EXPECT attributes-natural-language
235 # The name of the test...
236 NAME "Print Held Image Job to Test1"
238 # The operation to use
240 RESOURCE /printers/Test1
242 # The attributes to send
244 ATTR charset attributes-charset utf-8
245 ATTR language attributes-natural-language en
246 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
247 ATTR name requesting-user-name $user
249 ATTR keyword job-hold-until indefinite
253 # What statuses are OK?
256 # What attributes do we expect?
257 EXPECT attributes-charset
258 EXPECT attributes-natural-language
262 # The name of the test...
265 # The operation to use
269 # The attributes to send
271 ATTR charset attributes-charset utf-8
272 ATTR language attributes-natural-language en
273 ATTR uri job-uri $method://$hostname:$port/jobs/$job-id
274 ATTR name requesting-user-name $user
276 # What statuses are OK?
279 # What attributes do we expect?
280 EXPECT attributes-charset
281 EXPECT attributes-natural-language
284 # The name of the test...
285 NAME "Get Job List on Test1"
287 # The operation to use
289 RESOURCE /printers/Test1
291 # The attributes to send
293 ATTR charset attributes-charset utf-8
294 ATTR language attributes-natural-language en
295 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
297 # What statuses are OK?
300 # What attributes do we expect?
301 EXPECT attributes-charset
302 EXPECT attributes-natural-language
303 EXPECT !job-printer-uri
306 # The name of the test...
309 # The operation to use
313 # The attributes to send
315 ATTR charset attributes-charset utf-8
316 ATTR language attributes-natural-language en
317 ATTR uri printer-uri $scheme://$hostname:$port/
318 ATTR keyword requested-attributes all
320 # What statuses are OK?
323 # What attributes do we expect?
324 EXPECT attributes-charset
325 EXPECT attributes-natural-language
329 EXPECT job-printer-uri