2 # "$Id: 4.3-job-ops.test 6379 2007-03-21 14:57:22Z mike $"
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
173 # What statuses are OK?
176 # What attributes do we expect?
177 EXPECT attributes-charset
178 EXPECT attributes-natural-language
182 # The name of the test...
183 NAME "Hold Job on Test1"
185 # The operation to use
187 RESOURCE /printers/Test1
189 # The attributes to send
191 ATTR charset attributes-charset utf-8
192 ATTR language attributes-natural-language en
193 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
194 ATTR integer job-id $job-id
195 ATTR name requesting-user-name $user
197 # What statuses are OK?
200 # What attributes do we expect?
201 EXPECT attributes-charset
202 EXPECT attributes-natural-language
205 # The name of the test...
206 NAME "Release Job on Test1"
208 # The operation to use
209 OPERATION release-job
210 RESOURCE /printers/Test1
212 # The attributes to send
214 ATTR charset attributes-charset utf-8
215 ATTR language attributes-natural-language en
216 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
217 ATTR integer job-id $job-id
218 ATTR name requesting-user-name $user
220 # What statuses are OK?
223 # What attributes do we expect?
224 EXPECT attributes-charset
225 EXPECT attributes-natural-language
228 # The name of the test...
229 NAME "Print Held Image Job to Test1"
231 # The operation to use
233 RESOURCE /printers/Test1
235 # The attributes to send
237 ATTR charset attributes-charset utf-8
238 ATTR language attributes-natural-language en
239 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
240 ATTR name requesting-user-name $user
242 ATTR keyword job-hold-until indefinite
246 # What statuses are OK?
249 # What attributes do we expect?
250 EXPECT attributes-charset
251 EXPECT attributes-natural-language
255 # The name of the test...
258 # The operation to use
262 # The attributes to send
264 ATTR charset attributes-charset utf-8
265 ATTR language attributes-natural-language en
266 ATTR uri job-uri $method://$hostname:$port/jobs/$job-id
267 ATTR name requesting-user-name $user
269 # What statuses are OK?
272 # What attributes do we expect?
273 EXPECT attributes-charset
274 EXPECT attributes-natural-language
277 # The name of the test...
278 NAME "Get Job List on Test1"
280 # The operation to use
282 RESOURCE /printers/Test1
284 # The attributes to send
286 ATTR charset attributes-charset utf-8
287 ATTR language attributes-natural-language en
288 ATTR uri printer-uri $method://$hostname:$port/printers/Test1
290 # What statuses are OK?
293 # What attributes do we expect?
294 EXPECT attributes-charset
295 EXPECT attributes-natural-language
298 # The name of the test...
301 # The operation to use
305 # The attributes to send
307 ATTR charset attributes-charset utf-8
308 ATTR language attributes-natural-language en
309 ATTR uri job-uri $method://$hostname:$port/jobs
311 # What statuses are OK?
314 # What attributes do we expect?
315 EXPECT attributes-charset
316 EXPECT attributes-natural-language
323 # End of "$Id: 4.3-job-ops.test 6379 2007-03-21 14:57:22Z mike $"