2 # "$Id: 4.3-job-ops.test 11398 2013-11-06 20:11:11Z msweet $"
4 # Verify that the IPP job operations work.
7 # The name of the test...
8 NAME "Print PostScript Job with bad job-sheets value 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
20 ATTR name job-sheets "none\,none"
24 # What statuses are OK?
25 STATUS client-error-bad-request
28 # The name of the test...
29 NAME "Print PostScript Job to Test1"
31 # The operation to use
33 RESOURCE /printers/Test1
35 # The attributes to send
37 ATTR charset attributes-charset utf-8
38 ATTR language attributes-natural-language en
39 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
40 ATTR name requesting-user-name $user
44 # What statuses are OK?
47 # What attributes do we expect?
48 EXPECT attributes-charset
49 EXPECT attributes-natural-language
53 # The name of the test...
54 NAME "Get Job Attributes"
56 # The operation to use
57 OPERATION get-job-attributes
60 # The attributes to send
62 ATTR charset attributes-charset utf-8
63 ATTR language attributes-natural-language en
64 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
65 ATTR integer job-id $job-id
67 # What statuses are OK?
70 # What attributes do we expect?
71 EXPECT attributes-charset
72 EXPECT attributes-natural-language
78 # The name of the test...
79 NAME "Print JPEG Job to Test2"
81 # The operation to use
83 RESOURCE /printers/Test2
85 # The attributes to send
87 ATTR charset attributes-charset utf-8
88 ATTR language attributes-natural-language en
89 ATTR uri printer-uri $method://$hostname:$port/printers/Test2
90 ATTR name requesting-user-name $user
93 ATTR uri notify-recipient-uri testnotify:///
97 # What statuses are OK?
100 # What attributes do we expect?
101 EXPECT attributes-charset
102 EXPECT attributes-natural-language
104 EXPECT notify-subscription-id
107 # The name of the test...
108 NAME "Get Job Attributes"
110 # The operation to use
111 OPERATION get-job-attributes
114 # The attributes to send
116 ATTR charset attributes-charset utf-8
117 ATTR language attributes-natural-language en
118 ATTR uri printer-uri $method://$hostname:$port/printers/Test2
119 ATTR integer job-id $job-id
121 # What statuses are OK?
124 # What attributes do we expect?
125 EXPECT attributes-charset
126 EXPECT attributes-natural-language
132 # The name of the test...
133 NAME "Print Text Job to Test1"
135 # The operation to use
137 RESOURCE /printers/Test1
139 # The attributes to send
141 ATTR charset attributes-charset utf-8
142 ATTR language attributes-natural-language en
143 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
144 ATTR name requesting-user-name $user
148 # What statuses are OK?
151 # What attributes do we expect?
152 EXPECT attributes-charset
153 EXPECT attributes-natural-language
157 # The name of the test...
158 NAME "Print PDF Job to Test1"
160 # The operation to use
162 RESOURCE /printers/Test1
164 # The attributes to send
166 ATTR charset attributes-charset utf-8
167 ATTR language attributes-natural-language en
168 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
169 ATTR name requesting-user-name $user
172 ATTR keyword job-hold-until weekend
176 # What statuses are OK?
179 # What attributes do we expect?
180 EXPECT attributes-charset
181 EXPECT attributes-natural-language
185 # The name of the test...
186 NAME "Hold Job on Test1"
188 # The operation to use
190 RESOURCE /printers/Test1
192 # The attributes to send
194 ATTR charset attributes-charset utf-8
195 ATTR language attributes-natural-language en
196 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
197 ATTR integer job-id $job-id
198 ATTR name requesting-user-name $user
200 # What statuses are OK?
203 # What attributes do we expect?
204 EXPECT attributes-charset
205 EXPECT attributes-natural-language
208 # The name of the test...
209 NAME "Release Job on Test1"
211 # The operation to use
212 OPERATION release-job
213 RESOURCE /printers/Test1
215 # The attributes to send
217 ATTR charset attributes-charset utf-8
218 ATTR language attributes-natural-language en
219 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
220 ATTR integer job-id $job-id
221 ATTR name requesting-user-name $user
223 # What statuses are OK?
226 # What attributes do we expect?
227 EXPECT attributes-charset
228 EXPECT attributes-natural-language
231 # The name of the test...
232 NAME "Print Held Image Job to Test1"
234 # The operation to use
236 RESOURCE /printers/Test1
238 # The attributes to send
240 ATTR charset attributes-charset utf-8
241 ATTR language attributes-natural-language en
242 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
243 ATTR name requesting-user-name $user
245 ATTR keyword job-hold-until indefinite
249 # What statuses are OK?
252 # What attributes do we expect?
253 EXPECT attributes-charset
254 EXPECT attributes-natural-language
258 # The name of the test...
261 # The operation to use
265 # The attributes to send
267 ATTR charset attributes-charset utf-8
268 ATTR language attributes-natural-language en
269 ATTR uri job-uri $method://$hostname:$port/jobs/$job-id
270 ATTR name requesting-user-name $user
272 # What statuses are OK?
275 # What attributes do we expect?
276 EXPECT attributes-charset
277 EXPECT attributes-natural-language
280 # The name of the test...
281 NAME "Get Job List on Test1"
283 # The operation to use
285 RESOURCE /printers/Test1
287 # The attributes to send
289 ATTR charset attributes-charset utf-8
290 ATTR language attributes-natural-language en
291 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
293 # What statuses are OK?
296 # What attributes do we expect?
297 EXPECT attributes-charset
298 EXPECT attributes-natural-language
299 EXPECT !job-printer-uri
302 # The name of the test...
305 # The operation to use
309 # The attributes to send
311 ATTR charset attributes-charset utf-8
312 ATTR language attributes-natural-language en
313 ATTR uri printer-uri $scheme://$hostname:$port/
314 ATTR keyword requested-attributes all
316 # What statuses are OK?
319 # What attributes do we expect?
320 EXPECT attributes-charset
321 EXPECT attributes-natural-language
325 EXPECT job-printer-uri
329 # End of "$Id: 4.3-job-ops.test 11398 2013-11-06 20:11:11Z msweet $"