]>
Commit | Line | Data |
---|---|---|
f8b3a85b MS |
1 | # |
2 | # "$Id$" | |
3 | # | |
4 | # IPP/1.1 test suite. | |
5 | # | |
f99f3698 | 6 | # Copyright 2007-2011 by Apple Inc. |
f8b3a85b MS |
7 | # Copyright 2001-2006 by Easy Software Products. All rights reserved. |
8 | # | |
9 | # These coded instructions, statements, and computer programs are the | |
10 | # property of Apple Inc. and are protected by Federal copyright | |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
14 | # | |
15 | # Usage: | |
16 | # | |
83e08001 | 17 | # ./ipptool -f filename [-d document-uri=SOMEURI] -t printer-uri ipp-1.1.test |
f8b3a85b MS |
18 | # |
19 | ||
83e08001 MS |
20 | # Regular expressions for URI schemes: |
21 | # | |
22 | # HTTP_URI_SCHEME - Matches strings beginning with http:// or https:// | |
23 | # IPP_URI_SCHEME - Matches strings beginning with ipp:// or ipps:// | |
24 | ||
25 | DEFINE HTTP_URI_SCHEME "/^https?://.+$$/" | |
f99f3698 MS |
26 | DEFINE IPP_URI_SCHEME "/^ipps?://.+$$/" |
27 | ||
f8b3a85b MS |
28 | # Test that a request-id value of 0 is not accepted. |
29 | # | |
30 | # Required by: RFC 2911 section 3.1.1 | |
31 | { | |
83e08001 | 32 | NAME "RFC 2911 section 3.1.1: Bad request-id value 0" |
f8b3a85b MS |
33 | REQUEST-ID 0 |
34 | OPERATION Get-Printer-Attributes | |
35 | GROUP operation-attributes-tag | |
36 | ATTR charset attributes-charset utf-8 | |
37 | ATTR naturalLanguage attributes-natural-language en | |
38 | ATTR uri printer-uri $uri | |
39 | ||
40 | STATUS client-error-bad-request | |
41 | EXPECT !printer-uri-supported | |
42 | } | |
43 | ||
44 | ||
45 | # Test that the first two attributes must be attributes-charset and | |
46 | # attributes-natural-language. | |
47 | # | |
48 | # Required by: RFC 2911 section 3.1.4 | |
49 | { | |
83e08001 | 50 | NAME "RFC 2911 section 3.1.4: No Operation Attributes" |
f8b3a85b MS |
51 | REQUEST-ID random |
52 | OPERATION Get-Printer-Attributes | |
53 | GROUP operation-attributes-tag | |
54 | ||
55 | STATUS client-error-bad-request | |
56 | EXPECT !printer-uri-supported | |
57 | } | |
58 | { | |
83e08001 | 59 | NAME "RFC 2911 section 3.1.4: attributes-charset" |
f8b3a85b MS |
60 | OPERATION Get-Printer-Attributes |
61 | GROUP operation-attributes-tag | |
62 | ATTR charset attributes-charset utf-8 | |
63 | ATTR uri printer-uri $uri | |
64 | ||
65 | STATUS client-error-bad-request | |
66 | EXPECT !printer-uri-supported | |
67 | } | |
68 | { | |
83e08001 | 69 | NAME "RFC 2911 section 3.1.4: attributes-natural-language" |
f8b3a85b MS |
70 | OPERATION Get-Printer-Attributes |
71 | GROUP operation-attributes-tag | |
72 | ATTR naturalLanguage attributes-natural-language en | |
73 | ATTR uri printer-uri $uri | |
74 | ||
75 | STATUS client-error-bad-request | |
76 | EXPECT !printer-uri-supported | |
77 | } | |
78 | { | |
83e08001 | 79 | NAME "RFC 2911 section 3.1.4: attributes-natural-language + attributes-charset" |
f8b3a85b MS |
80 | OPERATION Get-Printer-Attributes |
81 | GROUP operation-attributes-tag | |
82 | ATTR naturalLanguage attributes-natural-language en | |
83 | ATTR charset attributes-charset utf-8 | |
84 | ATTR uri printer-uri $uri | |
85 | ||
86 | STATUS client-error-bad-request | |
87 | EXPECT !printer-uri-supported | |
88 | } | |
89 | { | |
83e08001 | 90 | NAME "RFC 2911 section 3.1.4: attributes-charset + attributes-natural-language" |
f8b3a85b MS |
91 | OPERATION Get-Printer-Attributes |
92 | GROUP operation-attributes-tag | |
93 | ATTR charset attributes-charset utf-8 | |
94 | ATTR naturalLanguage attributes-natural-language en | |
95 | ATTR uri printer-uri $uri | |
96 | ||
97 | STATUS successful-ok | |
f99f3698 | 98 | EXPECT printer-uri-supported OF-TYPE uri WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
99 | } |
100 | ||
101 | ||
102 | # Test that bad IPP versions are not supported. | |
103 | # | |
104 | # Required by: RFC 2911 section 3.1.8 | |
105 | { | |
106 | # The name of the test... | |
83e08001 | 107 | NAME "RFC 2911 section 3.1.8: Unsupported IPP version 0.0" |
f8b3a85b MS |
108 | VERSION 0.0 |
109 | OPERATION Get-Printer-Attributes | |
cc754834 | 110 | GROUP operation-attributes-tag |
f8b3a85b MS |
111 | ATTR charset attributes-charset utf-8 |
112 | ATTR naturalLanguage attributes-natural-language en | |
113 | ATTR uri printer-uri $uri | |
114 | ||
115 | STATUS server-error-version-not-supported | |
116 | EXPECT !printer-uri-supported | |
117 | } | |
118 | ||
119 | ||
120 | # Test that printer operations require the printer-uri operation attribute. | |
121 | # | |
122 | # Required by: RFC 2911 section 3.2 | |
123 | { | |
83e08001 | 124 | NAME "RFC 2911 section 3.2: No printer-uri operation attribute" |
f8b3a85b MS |
125 | OPERATION Get-Printer-Attributes |
126 | GROUP operation-attributes-tag | |
127 | ATTR charset attributes-charset utf-8 | |
128 | ATTR naturalLanguage attributes-natural-language en | |
129 | ||
130 | STATUS client-error-bad-request | |
131 | EXPECT !printer-uri-supported | |
132 | } | |
133 | ||
134 | ||
135 | # Test Print-Job operation | |
136 | # | |
137 | # Required by: RFC 2911 section 3.2.1 | |
138 | { | |
83e08001 | 139 | NAME "RFC 2911 section 3.2.1: Print-Job Operation" |
f8b3a85b MS |
140 | OPERATION Print-Job |
141 | GROUP operation-attributes-tag | |
142 | ATTR charset attributes-charset utf-8 | |
143 | ATTR naturalLanguage attributes-natural-language en | |
144 | ATTR uri printer-uri $uri | |
145 | ATTR name requesting-user-name $user | |
146 | ATTR name job-name $filename | |
147 | ATTR boolean ipp-attribute-fidelity false | |
148 | ATTR name document-name $filename | |
149 | ATTR keyword compression none | |
83e08001 | 150 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
151 | FILE $filename |
152 | ||
153 | STATUS successful-ok | |
154 | STATUS client-error-document-format-not-supported | |
83e08001 MS |
155 | STATUS server-error-job-canceled |
156 | STATUS server-error-busy REPEAT-MATCH | |
157 | ||
f99f3698 | 158 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
159 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag |
160 | WITH-VALUE >0 | |
d7225fc2 | 161 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
f8b3a85b | 162 | WITH-VALUE 3,4,5,6,7,8,9 |
83e08001 | 163 | EXPECT job-state WITH-VALUE 7,8,9 DEFINE-MATCH PRINT_JOB_COMPLETED |
f8b3a85b MS |
164 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
165 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
166 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
167 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
168 | } | |
169 | ||
83e08001 MS |
170 | # Test Validate-Job operation |
171 | # | |
172 | # Required by: RFC 2911 section 3.2.3 | |
173 | { | |
174 | NAME "RFC 2911 section 3.2.3: Validate-Job Operation" | |
175 | OPERATION Validate-Job | |
176 | GROUP operation-attributes-tag | |
177 | ATTR charset attributes-charset utf-8 | |
178 | ATTR naturalLanguage attributes-natural-language en | |
179 | ATTR uri printer-uri $uri | |
180 | ATTR name requesting-user-name $user | |
181 | ATTR name job-name $filename | |
182 | ATTR boolean ipp-attribute-fidelity false | |
183 | ATTR name document-name $filename | |
184 | ATTR keyword compression none | |
185 | ATTR mimeMediaType document-format $filetype | |
186 | ||
187 | STATUS successful-ok | |
188 | } | |
189 | ||
190 | ||
f8b3a85b MS |
191 | # Test Get-Printer-Attributes operation |
192 | # | |
193 | # Required by: RFC 2911 section 3.2.5 | |
194 | { | |
83e08001 | 195 | NAME "RFC 2911 section 3.2.5: Get-Printer-Attributes Operation (default)" |
f8b3a85b MS |
196 | OPERATION Get-Printer-Attributes |
197 | GROUP operation-attributes-tag | |
198 | ATTR charset attributes-charset utf-8 | |
199 | ATTR naturalLanguage attributes-natural-language en | |
200 | ATTR uri printer-uri $uri | |
201 | ATTR name requesting-user-name $user | |
83e08001 | 202 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
203 | |
204 | STATUS successful-ok | |
205 | ||
9b66acc5 | 206 | # Display some useful information to identify the test |
9b66acc5 | 207 | DISPLAY color-supported |
d7225fc2 | 208 | DISPLAY compression-supported |
9b66acc5 MS |
209 | DISPLAY document-format-supported |
210 | DISPLAY finishings-supported | |
d7225fc2 | 211 | DISPLAY ipp-versions-supported |
9b66acc5 MS |
212 | DISPLAY job-sheets-supported |
213 | DISPLAY media-supported | |
214 | DISPLAY number-up-supported | |
215 | DISPLAY operations-supported | |
d7225fc2 MS |
216 | DISPLAY pages-per-minute |
217 | DISPLAY pages-per-minute-color | |
9b66acc5 | 218 | DISPLAY print-quality-supported |
d7225fc2 | 219 | DISPLAY printer-uri-supported |
9b66acc5 MS |
220 | DISPLAY reference-uri-schemes-supported |
221 | DISPLAY sizes-supported | |
d7225fc2 MS |
222 | DISPLAY uri-authentication-supported |
223 | DISPLAY uri-security-supported | |
224 | ||
225 | # Operations | |
226 | EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 0x0002 # Print-Job | |
227 | EXPECT operations-supported WITH-VALUE 0x0003 DEFINE-MATCH OPTIONAL_PRINT_URI # Print-URI | |
228 | EXPECT operations-supported WITH-VALUE 0x0004 # Validate-Job | |
229 | EXPECT operations-supported WITH-VALUE 0x0005 DEFINE-MATCH OPTIONAL_CREATE_JOB # Create-Job | |
230 | EXPECT operations-supported WITH-VALUE 0x0006 DEFINE-MATCH OPTIONAL_SEND_DOCUMENT # Send-Document | |
231 | EXPECT operations-supported WITH-VALUE 0x0007 DEFINE-MATCH OPTIONAL_SEND_URI # Send-URI | |
232 | EXPECT operations-supported WITH-VALUE 0x0008 # Cancel-Job | |
233 | EXPECT operations-supported WITH-VALUE 0x0009 # Get-Job-Attributes | |
234 | EXPECT operations-supported WITH-VALUE 0x000a # Get-Jobs | |
235 | EXPECT operations-supported WITH-VALUE 0x000b # Get-Printer-Attributes | |
236 | EXPECT operations-supported WITH-VALUE 0x000c DEFINE-MATCH OPTIONAL_HOLD_JOB # Hold-Job | |
237 | EXPECT operations-supported WITH-VALUE 0x000d DEFINE-MATCH OPTIONAL_RELEASE_JOB # Release-Job | |
238 | EXPECT operations-supported WITH-VALUE 0x000e DEFINE-MATCH OPTIONAL_RESTART_JOB # Restart-Job | |
239 | EXPECT operations-supported WITH-VALUE 0x0010 DEFINE-MATCH OPTIONAL_PAUSE_PRINTER # Pause-Printer | |
240 | EXPECT operations-supported WITH-VALUE 0x0011 DEFINE-MATCH OPTIONAL_RESUME_PRINTER # Resume-Printer | |
241 | EXPECT operations-supported WITH-VALUE 0x0012 DEFINE-MATCH OPTIONAL_PURGE_JOBS # Purge-Jobs | |
9b66acc5 | 242 | |
f8b3a85b MS |
243 | # Job template attributes |
244 | EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
245 | EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag | |
246 | EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag | |
247 | EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 | |
248 | EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 | |
249 | EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold | |
d7225fc2 MS |
250 | EXPECT job-hold-until-default IF-DEFINED OPTIONAL_HOLD_JOB |
251 | EXPECT job-hold-until-supported IF-DEFINED OPTIONAL_HOLD_JOB | |
f8b3a85b MS |
252 | EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 |
253 | EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
254 | EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
255 | EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none | |
d7225fc2 | 256 | EXPECT ?media-default OF-TYPE no-value|keyword|name IN-GROUP printer-attributes-tag COUNT 1 |
f8b3a85b MS |
257 | EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag |
258 | EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag | |
259 | EXPECT ?multiple-document-handling-default OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
260 | EXPECT ?multiple-document-handling-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
261 | EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
262 | EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 | |
263 | EXPECT ?number-up-supported WITH-VALUE 1 | |
d7225fc2 | 264 | EXPECT ?orientation-requested-default OF-TYPE no-value|enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 |
f8b3a85b MS |
265 | EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 |
266 | EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag | |
267 | EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
268 | EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 | |
269 | EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 | |
270 | EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag | |
271 | EXPECT ?sides-default OF-TYPE keyword IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
272 | EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
273 | ||
83e08001 MS |
274 | # Job template attributes for specific tests... |
275 | EXPECT copies-supported WITH-VALUE >1 DEFINE-MATCH OPTIONAL_COPIES | |
276 | EXPECT document-format-supported WITH-VALUE "application/pdf" DEFINE-MATCH OPTIONAL_PDF | |
277 | EXPECT document-format-supported WITH-VALUE "application/postscript" DEFINE-MATCH OPTIONAL_POSTSCRIPT | |
278 | EXPECT document-format-supported WITH-VALUE "image/jpeg" DEFINE-MATCH OPTIONAL_JPEG | |
279 | EXPECT job-sheets-supported WITH-VALUE "standard" DEFINE-MATCH OPTIONAL_STANDARD_SHEET | |
d7225fc2 MS |
280 | EXPECT media-supported WITH-VALUE "a4" DEFINE-VALUE OPTIONAL_A4_MEDIA |
281 | EXPECT media-supported WITH-VALUE "iso-a4" DEFINE-VALUE OPTIONAL_A4_MEDIA | |
282 | EXPECT media-supported WITH-VALUE "iso_a4_210x297mm" DEFINE-VALUE OPTIONAL_A4_MEDIA | |
283 | EXPECT media-supported WITH-VALUE "letter" DEFINE-VALUE OPTIONAL_LETTER_MEDIA | |
284 | EXPECT media-supported WITH-VALUE "na-letter" DEFINE-VALUE OPTIONAL_LETTER_MEDIA | |
285 | EXPECT media-supported WITH-VALUE "na_letter_8.5x11in" DEFINE-VALUE OPTIONAL_LETTER_MEDIA | |
286 | EXPECT media-supported WITH-VALUE "index-4x6" DEFINE-VALUE OPTIONAL_4X6_MEDIA | |
287 | EXPECT media-supported WITH-VALUE "na_index-4x6_4x6in" DEFINE-VALUE OPTIONAL_4X6_MEDIA | |
83e08001 MS |
288 | EXPECT number-up-supported WITH-VALUE 2 DEFINE-MATCH OPTIONAL_2UP |
289 | EXPECT print-quality WITH-VALUE 3 DEFINE-MATCH OPTIONAL_DRAFT_QUALITY | |
290 | EXPECT print-quality WITH-VALUE 4 DEFINE-MATCH OPTIONAL_NORMAL_QUALITY | |
291 | EXPECT print-quality WITH-VALUE 5 DEFINE-MATCH OPTIONAL_BEST_QUALITY | |
292 | EXPECT sides-supported WITH-VALUE "two-sided-long-edge" DEFINE-MATCH OPTIONAL_DUPLEX | |
293 | ||
f8b3a85b MS |
294 | # Printer description attributes |
295 | EXPECT ?color-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
296 | EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
297 | EXPECT ?job-k-octets-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
298 | EXPECT ?job-media-sheets-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag COUNT 1 | |
299 | EXPECT ?multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
300 | EXPECT ?multiple-operation-time-out OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
301 | EXPECT ?pages-per-minute OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
302 | EXPECT ?pages-per-minute-color OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 | |
303 | EXPECT ?printer-driver-installer OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 | |
304 | EXPECT ?printer-info OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
305 | EXPECT ?printer-location OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
306 | EXPECT ?printer-make-and-model OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
307 | EXPECT ?printer-message-from-operator OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" | |
83e08001 MS |
308 | EXPECT ?printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" |
309 | EXPECT ?printer-more-info-manufacturer OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
310 | EXPECT ?printer-state-message OF-TYPE text IN-GROUP printer-attributes-tag |
311 | EXPECT ?reference-uri-schemes-supported OF-TYPE uriScheme IN-GROUP printer-attributes-tag | |
d7225fc2 MS |
312 | EXPECT reference-uri-schemes-supported WITH-VALUE "ftp" IF-DEFINED OPTIONAL_PRINT_URI |
313 | EXPECT reference-uri-schemes-supported WITH-VALUE "ftp" IF-DEFINED OPTIONAL_SEND_URI IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
f8b3a85b MS |
314 | EXPECT charset-configured OF-TYPE charset IN-GROUP printer-attributes-tag COUNT 1 |
315 | EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag WITH-VALUE utf-8 | |
316 | EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE none | |
317 | EXPECT document-format-default OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag COUNT 1 | |
318 | EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag | |
319 | EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag | |
320 | EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE 1.1 | |
321 | EXPECT natural-language-configured OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag COUNT 1 | |
f8b3a85b MS |
322 | EXPECT pdl-override-supported OF-TYPE keyword IN-GROUP printer-attributes-tag COUNT 1 |
323 | EXPECT printer-is-accepting-jobs OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 | |
324 | EXPECT printer-name OF-TYPE name IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{1,127}$$/" | |
325 | EXPECT printer-state OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
326 | EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag | |
327 | EXPECT printer-up-time OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 328 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag SAME-COUNT-AS uri-security-supported WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
329 | EXPECT queued-job-count OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 |
330 | EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag | |
331 | EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag SAME-COUNT-AS uri-authentication-supported | |
332 | } | |
333 | ||
334 | ||
335 | # Test Get-Printer-Attributes operation with requested-attributes | |
336 | # | |
337 | # Required by: RFC 2911 section 3.2.5 | |
338 | { | |
83e08001 | 339 | NAME "RFC 2911 section 3.2.5: Get-Printer-Attributes Operation (requested-attributes)" |
f8b3a85b MS |
340 | OPERATION Get-Printer-Attributes |
341 | GROUP operation-attributes-tag | |
342 | ATTR charset attributes-charset utf-8 | |
343 | ATTR naturalLanguage attributes-natural-language en | |
344 | ATTR uri printer-uri $uri | |
345 | ATTR name requesting-user-name $user | |
83e08001 | 346 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
347 | ATTR keyword requested-attributes printer-uri-supported |
348 | ||
349 | STATUS successful-ok | |
350 | ||
f99f3698 | 351 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
352 | EXPECT !printer-name |
353 | } | |
354 | ||
355 | ||
356 | # Test Get-Jobs operation | |
357 | # | |
358 | # Required by: RFC 2911 section 3.2.6 | |
359 | { | |
83e08001 | 360 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (default)" |
f8b3a85b MS |
361 | OPERATION Get-Jobs |
362 | GROUP operation-attributes-tag | |
363 | ATTR charset attributes-charset utf-8 | |
364 | ATTR naturalLanguage attributes-natural-language en | |
365 | ATTR uri printer-uri $uri | |
366 | ATTR name requesting-user-name $user | |
367 | ||
368 | STATUS successful-ok | |
83e08001 MS |
369 | EXPECT ?job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 |
370 | EXPECT ?job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
f8b3a85b MS |
371 | EXPECT !job-printer-uri |
372 | EXPECT !job-more-info | |
373 | EXPECT !job-name | |
374 | EXPECT !job-originating-user-name | |
375 | EXPECT !job-state | |
376 | EXPECT !job-state-reasons | |
377 | EXPECT !job-state-message | |
378 | EXPECT !job-detailed-status-messages | |
379 | EXPECT !number-of-documents | |
380 | EXPECT !output-device-assigned | |
381 | EXPECT !time-at-creation | |
382 | EXPECT !time-at-processing | |
383 | EXPECT !time-at-completed | |
384 | EXPECT !job-printer-up-time | |
385 | EXPECT !date-time-at-creation | |
386 | EXPECT !date-time-at-processing | |
387 | EXPECT !date-time-at-completed | |
388 | EXPECT !number-of-intervening-jobs | |
389 | EXPECT !job-message-from-operator | |
390 | EXPECT !job-k-octets | |
391 | EXPECT !job-impressions | |
392 | EXPECT !job-media-sheets | |
393 | EXPECT !job-k-octets-processed | |
394 | EXPECT !job-impressions-completed | |
395 | EXPECT !job-media-sheets-completed | |
396 | ||
397 | EXPECT !copies | |
398 | EXPECT !finishings | |
399 | EXPECT !job-hold-until | |
400 | EXPECT !job-priority | |
401 | EXPECT !job-sheets | |
402 | EXPECT !media | |
403 | EXPECT !multiple-document-handling | |
404 | EXPECT !number-up | |
405 | EXPECT !orientation-requested | |
406 | EXPECT !pages-ranges | |
407 | EXPECT !print-quality | |
408 | EXPECT !printer-resolution | |
409 | EXPECT !sides | |
410 | } | |
411 | ||
412 | ||
413 | # Test Get-Jobs operation | |
414 | # | |
415 | # Required by: RFC 2911 section 3.2.6 | |
416 | { | |
83e08001 MS |
417 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
418 | ||
419 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (requested-attributes)" | |
f8b3a85b MS |
420 | OPERATION Get-Jobs |
421 | GROUP operation-attributes-tag | |
422 | ATTR charset attributes-charset utf-8 | |
423 | ATTR naturalLanguage attributes-natural-language en | |
424 | ATTR uri printer-uri $uri | |
425 | ATTR name requesting-user-name $user | |
426 | ATTR keyword requested-attributes all | |
427 | ||
428 | STATUS successful-ok | |
429 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 430 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
83e08001 MS |
431 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
432 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
433 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 |
434 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 | 435 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 |
f8b3a85b MS |
436 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
437 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
438 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
439 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
440 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 MS |
441 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 |
442 | EXPECT time-at-processing OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
443 | EXPECT time-at-completed OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
444 | EXPECT job-printer-up-time OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 | |
445 | EXPECT ?date-time-at-creation OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
446 | EXPECT ?date-time-at-processing OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
447 | EXPECT ?date-time-at-completed OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
f8b3a85b MS |
448 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 |
449 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
450 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
451 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
452 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
453 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
454 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
455 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
456 | ||
457 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
458 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
459 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
460 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
461 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
462 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
463 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
464 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
465 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
466 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
467 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
468 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
469 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
470 | } | |
471 | ||
472 | ||
473 | # Test Get-Jobs operation | |
474 | # | |
475 | # Required by: RFC 2911 section 3.2.6 | |
476 | { | |
83e08001 MS |
477 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
478 | ||
479 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (my-jobs)" | |
f8b3a85b MS |
480 | OPERATION Get-Jobs |
481 | GROUP operation-attributes-tag | |
482 | ATTR charset attributes-charset utf-8 | |
483 | ATTR naturalLanguage attributes-natural-language en | |
484 | ATTR uri printer-uri $uri | |
485 | ATTR name requesting-user-name $user | |
486 | ATTR boolean my-jobs true | |
487 | ||
488 | STATUS successful-ok | |
489 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 490 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
491 | EXPECT !job-printer-uri |
492 | EXPECT !job-more-info | |
493 | EXPECT !job-name | |
494 | EXPECT !job-originating-user-name | |
495 | EXPECT !job-state | |
496 | EXPECT !job-state-reasons | |
497 | EXPECT !job-state-message | |
498 | EXPECT !job-detailed-status-messages | |
499 | EXPECT !number-of-documents | |
500 | EXPECT !output-device-assigned | |
501 | EXPECT !time-at-creation | |
502 | EXPECT !time-at-processing | |
503 | EXPECT !time-at-completed | |
504 | EXPECT !job-printer-up-time | |
505 | EXPECT !date-time-at-creation | |
506 | EXPECT !date-time-at-processing | |
507 | EXPECT !date-time-at-completed | |
508 | EXPECT !number-of-intervening-jobs | |
509 | EXPECT !job-message-from-operator | |
510 | EXPECT !job-k-octets | |
511 | EXPECT !job-impressions | |
512 | EXPECT !job-media-sheets | |
513 | EXPECT !job-k-octets-processed | |
514 | EXPECT !job-impressions-completed | |
515 | EXPECT !job-media-sheets-completed | |
516 | ||
517 | EXPECT !copies | |
518 | EXPECT !finishings | |
519 | EXPECT !job-hold-until | |
520 | EXPECT !job-priority | |
521 | EXPECT !job-sheets | |
522 | EXPECT !media | |
523 | EXPECT !multiple-document-handling | |
524 | EXPECT !number-up | |
525 | EXPECT !orientation-requested | |
526 | EXPECT !pages-ranges | |
527 | EXPECT !print-quality | |
528 | EXPECT !printer-resolution | |
529 | EXPECT !sides | |
530 | } | |
531 | ||
532 | ||
533 | # Test Get-Jobs operation | |
534 | # | |
535 | # Required by: RFC 2911 section 3.2.6 | |
536 | { | |
83e08001 MS |
537 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
538 | ||
7cf5915e MS |
539 | # Skip this test when doing authenticated printing since we'll always |
540 | # use the authenticated username over the requesting-user-name value. | |
541 | SKIP-IF-DEFINED uriuser | |
542 | ||
83e08001 | 543 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (my-jobs different user)" |
f8b3a85b MS |
544 | OPERATION Get-Jobs |
545 | GROUP operation-attributes-tag | |
546 | ATTR charset attributes-charset utf-8 | |
547 | ATTR naturalLanguage attributes-natural-language en | |
548 | ATTR uri printer-uri $uri | |
549 | ATTR name requesting-user-name not-$user | |
550 | ATTR boolean my-jobs true | |
551 | ||
552 | STATUS successful-ok | |
553 | EXPECT !job-id | |
554 | EXPECT !job-uri | |
555 | EXPECT !job-printer-uri | |
556 | EXPECT !job-more-info | |
557 | EXPECT !job-name | |
558 | EXPECT !job-originating-user-name | |
559 | EXPECT !job-state | |
560 | EXPECT !job-state-reasons | |
561 | EXPECT !job-state-message | |
562 | EXPECT !job-detailed-status-messages | |
563 | EXPECT !number-of-documents | |
564 | EXPECT !output-device-assigned | |
565 | EXPECT !time-at-creation | |
566 | EXPECT !time-at-processing | |
567 | EXPECT !time-at-completed | |
568 | EXPECT !job-printer-up-time | |
569 | EXPECT !date-time-at-creation | |
570 | EXPECT !date-time-at-processing | |
571 | EXPECT !date-time-at-completed | |
572 | EXPECT !number-of-intervening-jobs | |
573 | EXPECT !job-message-from-operator | |
574 | EXPECT !job-k-octets | |
575 | EXPECT !job-impressions | |
576 | EXPECT !job-media-sheets | |
577 | EXPECT !job-k-octets-processed | |
578 | EXPECT !job-impressions-completed | |
579 | EXPECT !job-media-sheets-completed | |
580 | ||
581 | EXPECT !copies | |
582 | EXPECT !finishings | |
583 | EXPECT !job-hold-until | |
584 | EXPECT !job-priority | |
585 | EXPECT !job-sheets | |
586 | EXPECT !media | |
587 | EXPECT !multiple-document-handling | |
588 | EXPECT !number-up | |
589 | EXPECT !orientation-requested | |
590 | EXPECT !pages-ranges | |
591 | EXPECT !print-quality | |
592 | EXPECT !printer-resolution | |
593 | EXPECT !sides | |
594 | } | |
595 | ||
596 | ||
597 | # Test Get-Jobs operation | |
598 | # | |
599 | # Required by: RFC 2911 section 3.2.6 | |
600 | { | |
83e08001 MS |
601 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED |
602 | ||
603 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs=not-completed)" | |
f8b3a85b MS |
604 | OPERATION Get-Jobs |
605 | GROUP operation-attributes-tag | |
606 | ATTR charset attributes-charset utf-8 | |
607 | ATTR naturalLanguage attributes-natural-language en | |
608 | ATTR uri printer-uri $uri | |
609 | ATTR name requesting-user-name $user | |
610 | ATTR keyword which-jobs not-completed | |
611 | ||
612 | STATUS successful-ok | |
613 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 614 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
615 | EXPECT !job-printer-uri |
616 | EXPECT !job-more-info | |
617 | EXPECT !job-name | |
618 | EXPECT !job-originating-user-name | |
619 | EXPECT !job-state | |
620 | EXPECT !job-state-reasons | |
621 | EXPECT !job-state-message | |
622 | EXPECT !job-detailed-status-messages | |
623 | EXPECT !number-of-documents | |
624 | EXPECT !output-device-assigned | |
625 | EXPECT !time-at-creation | |
626 | EXPECT !time-at-processing | |
627 | EXPECT !time-at-completed | |
628 | EXPECT !job-printer-up-time | |
629 | EXPECT !date-time-at-creation | |
630 | EXPECT !date-time-at-processing | |
631 | EXPECT !date-time-at-completed | |
632 | EXPECT !number-of-intervening-jobs | |
633 | EXPECT !job-message-from-operator | |
634 | EXPECT !job-k-octets | |
635 | EXPECT !job-impressions | |
636 | EXPECT !job-media-sheets | |
637 | EXPECT !job-k-octets-processed | |
638 | EXPECT !job-impressions-completed | |
639 | EXPECT !job-media-sheets-completed | |
640 | ||
641 | EXPECT !copies | |
642 | EXPECT !finishings | |
643 | EXPECT !job-hold-until | |
644 | EXPECT !job-priority | |
645 | EXPECT !job-sheets | |
646 | EXPECT !media | |
647 | EXPECT !multiple-document-handling | |
648 | EXPECT !number-up | |
649 | EXPECT !orientation-requested | |
650 | EXPECT !pages-ranges | |
651 | EXPECT !print-quality | |
652 | EXPECT !printer-resolution | |
653 | EXPECT !sides | |
654 | } | |
655 | ||
656 | ||
d7225fc2 MS |
657 | # Wait for job to complete... |
658 | { | |
659 | NAME "Get-Job-Attributes Until Job Complete" | |
660 | OPERATION Get-Job-Attributes | |
661 | GROUP operation-attributes-tag | |
662 | ATTR charset attributes-charset utf-8 | |
663 | ATTR naturalLanguage attributes-natural-language en | |
664 | ATTR uri printer-uri $uri | |
665 | ATTR integer job-id $job-id | |
666 | ATTR name requesting-user-name $user | |
667 | ||
668 | STATUS successful-ok | |
669 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >6,<10 REPEAT-NO-MATCH | |
670 | } | |
671 | ||
672 | ||
f8b3a85b MS |
673 | # Test Get-Jobs operation |
674 | # | |
675 | # Required by: RFC 2911 section 3.2.6 | |
676 | { | |
83e08001 | 677 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs=completed)" |
f8b3a85b MS |
678 | OPERATION Get-Jobs |
679 | GROUP operation-attributes-tag | |
680 | ATTR charset attributes-charset utf-8 | |
681 | ATTR naturalLanguage attributes-natural-language en | |
682 | ATTR uri printer-uri $uri | |
683 | ATTR name requesting-user-name $user | |
684 | ATTR keyword which-jobs completed | |
f8b3a85b MS |
685 | |
686 | STATUS successful-ok | |
687 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 688 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
689 | EXPECT !job-printer-uri |
690 | EXPECT !job-more-info | |
691 | EXPECT !job-name | |
692 | EXPECT !job-originating-user-name | |
693 | EXPECT !job-state | |
694 | EXPECT !job-state-reasons | |
695 | EXPECT !job-state-message | |
696 | EXPECT !job-detailed-status-messages | |
697 | EXPECT !number-of-documents | |
698 | EXPECT !output-device-assigned | |
699 | EXPECT !time-at-creation | |
700 | EXPECT !time-at-processing | |
701 | EXPECT !time-at-completed | |
702 | EXPECT !job-printer-up-time | |
703 | EXPECT !date-time-at-creation | |
704 | EXPECT !date-time-at-processing | |
705 | EXPECT !date-time-at-completed | |
706 | EXPECT !number-of-intervening-jobs | |
707 | EXPECT !job-message-from-operator | |
708 | EXPECT !job-k-octets | |
709 | EXPECT !job-impressions | |
710 | EXPECT !job-media-sheets | |
711 | EXPECT !job-k-octets-processed | |
712 | EXPECT !job-impressions-completed | |
713 | EXPECT !job-media-sheets-completed | |
714 | ||
715 | EXPECT !copies | |
716 | EXPECT !finishings | |
717 | EXPECT !job-hold-until | |
718 | EXPECT !job-priority | |
719 | EXPECT !job-sheets | |
720 | EXPECT !media | |
721 | EXPECT !multiple-document-handling | |
722 | EXPECT !number-up | |
723 | EXPECT !orientation-requested | |
724 | EXPECT !pages-ranges | |
725 | EXPECT !print-quality | |
726 | EXPECT !printer-resolution | |
727 | EXPECT !sides | |
728 | } | |
729 | ||
730 | ||
83e08001 MS |
731 | # Test Get-Jobs operation |
732 | # | |
733 | # Required by: RFC 2911 section 3.2.6 | |
734 | { | |
735 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED | |
736 | ||
737 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs, requested-attributes)" | |
738 | OPERATION Get-Jobs | |
739 | GROUP operation-attributes-tag | |
740 | ATTR charset attributes-charset utf-8 | |
741 | ATTR naturalLanguage attributes-natural-language en | |
742 | ATTR uri printer-uri $uri | |
743 | ATTR name requesting-user-name $user | |
744 | ATTR keyword requested-attributes all | |
745 | ATTR keyword which-jobs completed | |
746 | ||
747 | STATUS successful-ok | |
748 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
749 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
750 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
751 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
752 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
753 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 | 754 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 |
83e08001 MS |
755 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
756 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
757 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
758 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
759 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 MS |
760 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 |
761 | EXPECT time-at-processing OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
762 | EXPECT time-at-completed OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
763 | EXPECT job-printer-up-time OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 | |
764 | EXPECT ?date-time-at-creation OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
765 | EXPECT ?date-time-at-processing OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
766 | EXPECT ?date-time-at-completed OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
83e08001 MS |
767 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 |
768 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
769 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
770 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
771 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
772 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
773 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
774 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
775 | ||
776 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
777 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
778 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
779 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
780 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
781 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
782 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
783 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
784 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
785 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
786 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
787 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
788 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
789 | } | |
790 | ||
791 | ||
f8b3a85b MS |
792 | # Test Cancel-Job operation |
793 | # | |
794 | # Required by: RFC 2911 section 3.3.3 | |
795 | { | |
83e08001 | 796 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (completed job)" |
f8b3a85b MS |
797 | OPERATION Cancel-Job |
798 | GROUP operation-attributes-tag | |
799 | ATTR charset attributes-charset utf-8 | |
800 | ATTR naturalLanguage attributes-natural-language en | |
801 | ATTR uri printer-uri $uri | |
802 | ATTR integer job-id $job-id | |
803 | ATTR name requesting-user-name $user | |
804 | ||
805 | STATUS client-error-not-possible | |
806 | } | |
807 | ||
808 | ||
809 | # Test Print-Job operation | |
810 | # | |
811 | # Required by: RFC 2911 section 3.2.1 | |
812 | { | |
83e08001 | 813 | NAME "RFC 2911 section 3.2.1: Print-Job Operation" |
f8b3a85b MS |
814 | OPERATION Print-Job |
815 | GROUP operation-attributes-tag | |
816 | ATTR charset attributes-charset utf-8 | |
817 | ATTR naturalLanguage attributes-natural-language en | |
818 | ATTR uri printer-uri $uri | |
819 | ATTR name requesting-user-name $user | |
820 | ATTR name job-name $filename | |
821 | ATTR boolean ipp-attribute-fidelity false | |
822 | ATTR name document-name $filename | |
823 | ATTR keyword compression none | |
83e08001 | 824 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
825 | FILE $filename |
826 | ||
827 | STATUS successful-ok | |
828 | STATUS client-error-document-format-not-supported | |
83e08001 MS |
829 | STATUS server-error-job-canceled |
830 | STATUS server-error-busy REPEAT-MATCH | |
831 | ||
f99f3698 | 832 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
833 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag |
834 | WITH-VALUE >0 | |
d7225fc2 | 835 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
f8b3a85b MS |
836 | WITH-VALUE 3,4,5,6,7,8,9 |
837 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
838 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
839 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
840 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
841 | } | |
842 | ||
843 | ||
844 | # Test Cancel-Job operation | |
845 | # | |
846 | # Required by: RFC 2911 section 3.3.3 | |
847 | { | |
83e08001 | 848 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (pending/processing job)" |
f8b3a85b MS |
849 | OPERATION Cancel-Job |
850 | GROUP operation-attributes-tag | |
851 | ATTR charset attributes-charset utf-8 | |
852 | ATTR naturalLanguage attributes-natural-language en | |
853 | ATTR uri printer-uri $uri | |
854 | ATTR integer job-id $job-id | |
855 | ATTR name requesting-user-name $user | |
856 | ||
857 | STATUS successful-ok | |
c779abb0 | 858 | STATUS client-error-not-possible |
f8b3a85b MS |
859 | } |
860 | ||
861 | ||
862 | # Test Get-Job-Attributes operation | |
863 | # | |
864 | # Required by: RFC 2911 section 3.3.4 | |
865 | { | |
83e08001 | 866 | NAME "RFC 2911 section 3.3.4: Get-Job-Attributes Operation" |
f8b3a85b MS |
867 | OPERATION Get-Job-Attributes |
868 | GROUP operation-attributes-tag | |
869 | ATTR charset attributes-charset utf-8 | |
870 | ATTR naturalLanguage attributes-natural-language en | |
871 | ATTR uri printer-uri $uri | |
872 | ATTR integer job-id $job-id | |
873 | ATTR name requesting-user-name $user | |
874 | ||
875 | STATUS successful-ok | |
876 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 877 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
83e08001 MS |
878 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
879 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
880 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 |
881 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 | 882 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 |
f8b3a85b MS |
883 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
884 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
885 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
886 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
887 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 MS |
888 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 |
889 | EXPECT time-at-processing OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
890 | EXPECT time-at-completed OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
891 | EXPECT job-printer-up-time OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 | |
892 | EXPECT ?date-time-at-creation OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
893 | EXPECT ?date-time-at-processing OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
894 | EXPECT ?date-time-at-completed OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
f8b3a85b MS |
895 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 |
896 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
897 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
898 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
899 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
900 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
901 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
902 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
903 | ||
904 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
905 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
906 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
907 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
908 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
909 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
910 | EXPECT ?multiple-document-handling OF-TYPE keyword IN-GROUP job-attributes-tag WITH-VALUE "/^(single-document|separate-documents-uncollated-copies|separate-documents-collated-copies|single-document-new-sheet)$$/" | |
911 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
912 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
913 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
914 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
915 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
916 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
917 | } | |
918 | ||
919 | ||
83e08001 MS |
920 | # Test Print-URI operation |
921 | # | |
922 | # Defined by: RFC 2911 section 3.2.2 | |
923 | { | |
924 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
925 | SKIP-IF-NOT-DEFINED document-uri | |
926 | ||
927 | NAME "RFC 2911 section 3.2.2: Print-URI Operation" | |
928 | OPERATION Print-URI | |
929 | GROUP operation-attributes-tag | |
930 | ATTR charset attributes-charset utf-8 | |
931 | ATTR naturalLanguage attributes-natural-language en | |
932 | ATTR uri printer-uri $uri | |
933 | ATTR name requesting-user-name $user | |
934 | ATTR name job-name $filename | |
935 | ATTR boolean ipp-attribute-fidelity false | |
936 | ATTR name document-name $filename | |
937 | ATTR keyword compression none | |
938 | ATTR uri document-uri $document-uri | |
939 | ||
940 | STATUS successful-ok | |
941 | STATUS server-error-job-canceled | |
942 | STATUS server-error-busy REPEAT-MATCH | |
943 | ||
944 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
945 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
946 | WITH-VALUE >0 | |
d7225fc2 | 947 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
948 | WITH-VALUE 3,4,5,6,7,8,9 |
949 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
950 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
951 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
952 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
953 | } | |
954 | ||
955 | ||
956 | # Test Print-URI operation with bad document-uri | |
957 | # | |
958 | # Defined by: RFC 2911 section 3.2.2 | |
959 | { | |
960 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
d7225fc2 | 961 | SKIP-IF-NOT-DEFINED document-uri |
83e08001 MS |
962 | |
963 | NAME "Print-URI with bad URI: Print-URI Operation" | |
964 | OPERATION Print-URI | |
965 | GROUP operation-attributes-tag | |
966 | ATTR charset attributes-charset utf-8 | |
967 | ATTR naturalLanguage attributes-natural-language en | |
968 | ATTR uri printer-uri $uri | |
969 | ATTR name requesting-user-name $user | |
970 | ATTR name job-name $filename | |
971 | ATTR boolean ipp-attribute-fidelity false | |
972 | ATTR name document-name $filename | |
973 | ATTR keyword compression none | |
974 | ATTR uri document-uri "bogus://bogus" | |
975 | ||
976 | STATUS client-error-uri-scheme-not-supported | |
977 | ||
978 | EXPECT !job-uri | |
979 | EXPECT !job-id | |
980 | EXPECT !job-state | |
981 | EXPECT !job-state-reasons | |
982 | EXPECT !job-state-message | |
983 | } | |
984 | ||
985 | ||
986 | # Test Create-Job and Send-Document operations | |
987 | # | |
988 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
989 | { | |
990 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
991 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
992 | ||
993 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
994 | OPERATION Create-Job | |
995 | GROUP operation-attributes-tag | |
996 | ATTR charset attributes-charset utf-8 | |
997 | ATTR naturalLanguage attributes-natural-language en | |
998 | ATTR uri printer-uri $uri | |
999 | ATTR name requesting-user-name $user | |
1000 | ATTR name job-name $filename | |
1001 | ATTR boolean ipp-attribute-fidelity false | |
1002 | ||
1003 | STATUS successful-ok | |
1004 | ||
1005 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1006 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1007 | WITH-VALUE >0 | |
d7225fc2 | 1008 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1009 | WITH-VALUE 3,4,5,6,7,8,9 |
1010 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1011 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1012 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1013 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1014 | } | |
1015 | ||
1016 | { | |
1017 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1018 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1019 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1020 | |
1021 | NAME "RFC 2911 section 3.3.1: Send-Document Operation" | |
1022 | OPERATION Send-Document | |
1023 | GROUP operation-attributes-tag | |
1024 | ATTR charset attributes-charset utf-8 | |
1025 | ATTR naturalLanguage attributes-natural-language en | |
1026 | ATTR uri printer-uri $uri | |
1027 | ATTR integer job-id $job-id | |
1028 | ATTR name requesting-user-name $user | |
1029 | ATTR boolean last-document true | |
1030 | ATTR name document-name $filename | |
1031 | ATTR keyword compression none | |
1032 | ATTR mimeMediaType document-format $filetype | |
1033 | FILE $filename | |
1034 | ||
1035 | STATUS successful-ok | |
1036 | STATUS client-error-document-format-not-supported | |
1037 | STATUS server-error-job-canceled | |
1038 | } | |
1039 | ||
1040 | # Test Create-Job and Send-Document operations (no last-document) | |
1041 | # | |
1042 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
1043 | { | |
1044 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1045 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
1046 | ||
1047 | NAME "Send-Document missing last-document: Create-Job Operation" | |
1048 | OPERATION Create-Job | |
1049 | GROUP operation-attributes-tag | |
1050 | ATTR charset attributes-charset utf-8 | |
1051 | ATTR naturalLanguage attributes-natural-language en | |
1052 | ATTR uri printer-uri $uri | |
1053 | ATTR name requesting-user-name $user | |
1054 | ATTR name job-name $filename | |
1055 | ATTR boolean ipp-attribute-fidelity false | |
1056 | ||
1057 | STATUS successful-ok | |
1058 | ||
1059 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1060 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1061 | WITH-VALUE >0 | |
d7225fc2 | 1062 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1063 | WITH-VALUE 3,4,5,6,7,8,9 |
1064 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1065 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1066 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1067 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1068 | } | |
1069 | ||
1070 | { | |
1071 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1072 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1073 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1074 | |
1075 | NAME "Send-Document missing last-document: Send-Document Operation" | |
1076 | OPERATION Send-Document | |
1077 | GROUP operation-attributes-tag | |
1078 | ATTR charset attributes-charset utf-8 | |
1079 | ATTR naturalLanguage attributes-natural-language en | |
1080 | ATTR uri printer-uri $uri | |
1081 | ATTR integer job-id $job-id | |
1082 | ATTR name requesting-user-name $user | |
1083 | ATTR name document-name $filename | |
1084 | ATTR keyword compression none | |
1085 | ATTR mimeMediaType document-format $filetype | |
1086 | FILE $filename | |
1087 | ||
1088 | STATUS client-error-bad-request | |
1089 | } | |
1090 | ||
1091 | { | |
1092 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1093 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1094 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1095 | |
1096 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation" | |
1097 | OPERATION Cancel-Job | |
1098 | GROUP operation-attributes-tag | |
1099 | ATTR charset attributes-charset utf-8 | |
1100 | ATTR naturalLanguage attributes-natural-language en | |
1101 | ATTR uri printer-uri $uri | |
1102 | ATTR integer job-id $job-id | |
1103 | ATTR name requesting-user-name $user | |
1104 | ||
1105 | STATUS successful-ok | |
1106 | STATUS server-error-job-canceled | |
1107 | } | |
1108 | ||
1109 | # Test Create-Job and Send-URI operations | |
1110 | # | |
1111 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1112 | { | |
1113 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1114 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1115 | SKIP-IF-NOT-DEFINED document-uri | |
1116 | ||
1117 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
1118 | OPERATION Create-Job | |
1119 | GROUP operation-attributes-tag | |
1120 | ATTR charset attributes-charset utf-8 | |
1121 | ATTR naturalLanguage attributes-natural-language en | |
1122 | ATTR uri printer-uri $uri | |
1123 | ATTR name requesting-user-name $user | |
1124 | ATTR name job-name $filename | |
1125 | ATTR boolean ipp-attribute-fidelity false | |
1126 | ||
1127 | STATUS successful-ok | |
1128 | ||
1129 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1130 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1131 | WITH-VALUE >0 | |
d7225fc2 | 1132 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1133 | WITH-VALUE 3,4,5,6,7,8,9 |
1134 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1135 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1136 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1137 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1138 | } | |
1139 | ||
1140 | { | |
1141 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1142 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1143 | SKIP-IF-NOT-DEFINED document-uri | |
9b66acc5 | 1144 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1145 | |
1146 | NAME "RFC 2911 section 3.3.2: Send-URI Operation" | |
1147 | OPERATION Send-URI | |
1148 | GROUP operation-attributes-tag | |
1149 | ATTR charset attributes-charset utf-8 | |
1150 | ATTR naturalLanguage attributes-natural-language en | |
1151 | ATTR uri printer-uri $uri | |
1152 | ATTR integer job-id $job-id | |
1153 | ATTR name requesting-user-name $user | |
1154 | ATTR boolean last-document true | |
1155 | ATTR name document-name $filename | |
1156 | ATTR keyword compression none | |
1157 | ATTR uri document-uri $document-uri | |
1158 | ||
1159 | STATUS successful-ok | |
1160 | STATUS server-error-job-canceled | |
1161 | } | |
1162 | ||
1163 | ||
1164 | # Test Create-Job and Send-URI operations (bad URI) | |
1165 | # | |
1166 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1167 | { | |
1168 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1169 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1170 | ||
1171 | NAME "Send-URI with bad URI: Create-Job Operation" | |
1172 | OPERATION Create-Job | |
1173 | GROUP operation-attributes-tag | |
1174 | ATTR charset attributes-charset utf-8 | |
1175 | ATTR naturalLanguage attributes-natural-language en | |
1176 | ATTR uri printer-uri $uri | |
1177 | ATTR name requesting-user-name $user | |
1178 | ATTR name job-name $filename | |
1179 | ATTR boolean ipp-attribute-fidelity false | |
1180 | ||
1181 | STATUS successful-ok | |
1182 | ||
1183 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1184 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1185 | WITH-VALUE >0 | |
d7225fc2 | 1186 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1187 | WITH-VALUE 3,4,5,6,7,8,9 |
1188 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1189 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1190 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1191 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1192 | } | |
1193 | ||
1194 | { | |
1195 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1196 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
d7225fc2 | 1197 | SKIP-IF-NOT-DEFINED document-uri |
9b66acc5 | 1198 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1199 | |
1200 | NAME "Send-URI with bad URI: Send-URI Operation (bad URI)" | |
1201 | OPERATION Send-URI | |
1202 | GROUP operation-attributes-tag | |
1203 | ATTR charset attributes-charset utf-8 | |
1204 | ATTR naturalLanguage attributes-natural-language en | |
1205 | ATTR uri printer-uri $uri | |
1206 | ATTR integer job-id $job-id | |
1207 | ATTR name requesting-user-name $user | |
1208 | ATTR boolean last-document true | |
1209 | ATTR name document-name $filename | |
1210 | ATTR keyword compression none | |
1211 | ATTR mimeMediaType document-format $filetype | |
1212 | ATTR uri document-uri "bogus://bogus" | |
1213 | ||
1214 | STATUS client-error-uri-scheme-not-supported | |
1215 | } | |
1216 | ||
1217 | { | |
1218 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1219 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
9b66acc5 | 1220 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1221 | |
1222 | NAME "Send-URI with bad URI: Cancel-Job Operation" | |
1223 | OPERATION Cancel-Job | |
1224 | GROUP operation-attributes-tag | |
1225 | ATTR charset attributes-charset utf-8 | |
1226 | ATTR naturalLanguage attributes-natural-language en | |
1227 | ATTR uri printer-uri $uri | |
1228 | ATTR integer job-id $job-id | |
1229 | ATTR name requesting-user-name $user | |
1230 | ||
1231 | STATUS successful-ok | |
1232 | STATUS server-error-job-canceled | |
1233 | } | |
1234 | ||
1235 | ||
1236 | # Test multiple copy output | |
1237 | { | |
1238 | SKIP-IF-NOT-DEFINED OPTIONAL_COPIES | |
1239 | ||
1240 | NAME "Print-Job with copies" | |
1241 | OPERATION Print-Job | |
1242 | GROUP operation-attributes-tag | |
1243 | ATTR charset attributes-charset utf-8 | |
1244 | ATTR naturalLanguage attributes-natural-language en | |
1245 | ATTR uri printer-uri $uri | |
1246 | ATTR name requesting-user-name $user | |
1247 | ATTR name job-name $filename | |
1248 | ATTR boolean ipp-attribute-fidelity false | |
1249 | ATTR name document-name $filename | |
1250 | ATTR keyword compression none | |
1251 | ATTR mimeMediaType document-format $filetype | |
1252 | GROUP job-attributes-tag | |
1253 | ATTR integer copies 2 | |
1254 | FILE $filename | |
1255 | ||
1256 | STATUS successful-ok | |
1257 | STATUS client-error-document-format-not-supported | |
1258 | STATUS server-error-job-canceled | |
1259 | STATUS server-error-busy REPEAT-MATCH | |
1260 | ||
1261 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1262 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1263 | WITH-VALUE >0 | |
d7225fc2 | 1264 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1265 | WITH-VALUE 3,4,5,6,7,8,9 |
1266 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1267 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1268 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1269 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1270 | } | |
1271 | ||
1272 | ||
1273 | # Test PDF output | |
1274 | { | |
1275 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1276 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1277 | ||
1278 | NAME "Print-Job with A4 PDF" | |
1279 | OPERATION Print-Job | |
1280 | GROUP operation-attributes-tag | |
1281 | ATTR charset attributes-charset utf-8 | |
1282 | ATTR naturalLanguage attributes-natural-language en | |
1283 | ATTR uri printer-uri $uri | |
1284 | ATTR name requesting-user-name $user | |
1285 | ATTR name job-name "A4 Test Document" | |
1286 | ATTR boolean ipp-attribute-fidelity false | |
1287 | ATTR name document-name document-a4.pdf | |
1288 | ATTR keyword compression none | |
1289 | ATTR mimeMediaType document-format application/pdf | |
1290 | GROUP job-attributes-tag | |
9b66acc5 | 1291 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1292 | FILE document-a4.pdf |
1293 | ||
1294 | STATUS successful-ok | |
1295 | STATUS server-error-job-canceled | |
1296 | STATUS server-error-busy REPEAT-MATCH | |
1297 | ||
1298 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1299 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1300 | WITH-VALUE >0 | |
d7225fc2 | 1301 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1302 | WITH-VALUE 3,4,5,6,7,8,9 |
1303 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1304 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1305 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1306 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1307 | } | |
1308 | ||
1309 | { | |
1310 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1311 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1312 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1313 | ||
1314 | NAME "Print-Job with A4 PDF, Duplex" | |
1315 | OPERATION Print-Job | |
1316 | GROUP operation-attributes-tag | |
1317 | ATTR charset attributes-charset utf-8 | |
1318 | ATTR naturalLanguage attributes-natural-language en | |
1319 | ATTR uri printer-uri $uri | |
1320 | ATTR name requesting-user-name $user | |
1321 | ATTR name job-name "A4 Test Document, Duplex" | |
1322 | ATTR boolean ipp-attribute-fidelity false | |
1323 | ATTR name document-name document-a4.pdf | |
1324 | ATTR keyword compression none | |
1325 | ATTR mimeMediaType document-format application/pdf | |
1326 | GROUP job-attributes-tag | |
9b66acc5 | 1327 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1328 | ATTR keyword sides two-sided-long-edge |
1329 | FILE document-a4.pdf | |
1330 | ||
1331 | STATUS successful-ok | |
1332 | STATUS server-error-job-canceled | |
1333 | STATUS server-error-busy REPEAT-MATCH | |
1334 | ||
1335 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1336 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1337 | WITH-VALUE >0 | |
d7225fc2 | 1338 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1339 | WITH-VALUE 3,4,5,6,7,8,9 |
1340 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1341 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1342 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1343 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1344 | } | |
1345 | ||
1346 | { | |
1347 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1348 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1349 | ||
1350 | NAME "Print-Job with US Letter PDF" | |
1351 | OPERATION Print-Job | |
1352 | GROUP operation-attributes-tag | |
1353 | ATTR charset attributes-charset utf-8 | |
1354 | ATTR naturalLanguage attributes-natural-language en | |
1355 | ATTR uri printer-uri $uri | |
1356 | ATTR name requesting-user-name $user | |
1357 | ATTR name job-name "US Letter Test Document" | |
1358 | ATTR boolean ipp-attribute-fidelity false | |
1359 | ATTR name document-name document-letter.pdf | |
1360 | ATTR keyword compression none | |
1361 | ATTR mimeMediaType document-format application/pdf | |
1362 | GROUP job-attributes-tag | |
9b66acc5 | 1363 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1364 | FILE document-letter.pdf |
1365 | ||
1366 | STATUS successful-ok | |
1367 | STATUS server-error-job-canceled | |
1368 | STATUS server-error-busy REPEAT-MATCH | |
1369 | ||
1370 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1371 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1372 | WITH-VALUE >0 | |
d7225fc2 | 1373 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1374 | WITH-VALUE 3,4,5,6,7,8,9 |
1375 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1376 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1377 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1378 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1379 | } | |
1380 | ||
1381 | { | |
1382 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1383 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1384 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1385 | ||
1386 | NAME "Print-Job with US Letter PDF, Duplex" | |
1387 | OPERATION Print-Job | |
1388 | GROUP operation-attributes-tag | |
1389 | ATTR charset attributes-charset utf-8 | |
1390 | ATTR naturalLanguage attributes-natural-language en | |
1391 | ATTR uri printer-uri $uri | |
1392 | ATTR name requesting-user-name $user | |
1393 | ATTR name job-name "US Letter Test Document, Duplex" | |
1394 | ATTR boolean ipp-attribute-fidelity false | |
1395 | ATTR name document-name document-letter.pdf | |
1396 | ATTR keyword compression none | |
1397 | ATTR mimeMediaType document-format application/pdf | |
1398 | GROUP job-attributes-tag | |
9b66acc5 | 1399 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1400 | ATTR keyword sides two-sided-long-edge |
1401 | FILE document-letter.pdf | |
1402 | ||
1403 | STATUS successful-ok | |
1404 | STATUS server-error-job-canceled | |
1405 | STATUS server-error-busy REPEAT-MATCH | |
1406 | ||
1407 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1408 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1409 | WITH-VALUE >0 | |
d7225fc2 | 1410 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1411 | WITH-VALUE 3,4,5,6,7,8,9 |
1412 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1413 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1414 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1415 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1416 | } | |
1417 | ||
1418 | ||
1419 | # Test PostScript output | |
1420 | { | |
1421 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1422 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1423 | ||
1424 | NAME "Print-Job with A4 PostScript" | |
1425 | OPERATION Print-Job | |
1426 | GROUP operation-attributes-tag | |
1427 | ATTR charset attributes-charset utf-8 | |
1428 | ATTR naturalLanguage attributes-natural-language en | |
1429 | ATTR uri printer-uri $uri | |
1430 | ATTR name requesting-user-name $user | |
1431 | ATTR name job-name "A4 Test Document, Duplex" | |
1432 | ATTR boolean ipp-attribute-fidelity false | |
1433 | ATTR name document-name document-a4.ps | |
1434 | ATTR keyword compression none | |
1435 | ATTR mimeMediaType document-format application/postscript | |
1436 | GROUP job-attributes-tag | |
9b66acc5 | 1437 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1438 | FILE document-a4.ps |
1439 | ||
1440 | STATUS successful-ok | |
1441 | STATUS server-error-job-canceled | |
1442 | STATUS server-error-busy REPEAT-MATCH | |
1443 | ||
1444 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1445 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1446 | WITH-VALUE >0 | |
d7225fc2 | 1447 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1448 | WITH-VALUE 3,4,5,6,7,8,9 |
1449 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1450 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1451 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1452 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1453 | } | |
1454 | ||
1455 | { | |
1456 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1457 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1458 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1459 | ||
1460 | NAME "Print-Job with A4 PostScript, Duplex" | |
1461 | OPERATION Print-Job | |
1462 | GROUP operation-attributes-tag | |
1463 | ATTR charset attributes-charset utf-8 | |
1464 | ATTR naturalLanguage attributes-natural-language en | |
1465 | ATTR uri printer-uri $uri | |
1466 | ATTR name requesting-user-name $user | |
1467 | ATTR name job-name "US Letter Test Document" | |
1468 | ATTR boolean ipp-attribute-fidelity false | |
1469 | ATTR name document-name document-a4.ps | |
1470 | ATTR keyword compression none | |
1471 | ATTR mimeMediaType document-format application/postscript | |
1472 | GROUP job-attributes-tag | |
9b66acc5 | 1473 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1474 | ATTR keyword sides two-sided-long-edge |
1475 | FILE document-a4.ps | |
1476 | ||
1477 | STATUS successful-ok | |
1478 | STATUS server-error-job-canceled | |
1479 | STATUS server-error-busy REPEAT-MATCH | |
1480 | ||
1481 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1482 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1483 | WITH-VALUE >0 | |
d7225fc2 | 1484 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1485 | WITH-VALUE 3,4,5,6,7,8,9 |
1486 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1487 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1488 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1489 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1490 | } | |
1491 | ||
1492 | { | |
1493 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1494 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1495 | ||
1496 | NAME "Print-Job with US Letter PostScript" | |
1497 | OPERATION Print-Job | |
1498 | GROUP operation-attributes-tag | |
1499 | ATTR charset attributes-charset utf-8 | |
1500 | ATTR naturalLanguage attributes-natural-language en | |
1501 | ATTR uri printer-uri $uri | |
1502 | ATTR name requesting-user-name $user | |
1503 | ATTR name job-name "US Letter Test Document, Duplex" | |
1504 | ATTR boolean ipp-attribute-fidelity false | |
1505 | ATTR name document-name document-letter.ps | |
1506 | ATTR keyword compression none | |
1507 | ATTR mimeMediaType document-format application/postscript | |
1508 | GROUP job-attributes-tag | |
9b66acc5 | 1509 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1510 | FILE document-letter.ps |
1511 | ||
1512 | STATUS successful-ok | |
1513 | STATUS server-error-job-canceled | |
1514 | STATUS server-error-busy REPEAT-MATCH | |
1515 | ||
1516 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1517 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1518 | WITH-VALUE >0 | |
d7225fc2 | 1519 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1520 | WITH-VALUE 3,4,5,6,7,8,9 |
1521 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1522 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1523 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1524 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1525 | } | |
1526 | ||
1527 | { | |
1528 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1529 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1530 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1531 | ||
1532 | NAME "Print-Job with US Letter PostScript, Duplex" | |
1533 | OPERATION Print-Job | |
1534 | GROUP operation-attributes-tag | |
1535 | ATTR charset attributes-charset utf-8 | |
1536 | ATTR naturalLanguage attributes-natural-language en | |
1537 | ATTR uri printer-uri $uri | |
1538 | ATTR name requesting-user-name $user | |
1539 | ATTR name job-name "A4 Test Document" | |
1540 | ATTR boolean ipp-attribute-fidelity false | |
1541 | ATTR name document-name document-letter.ps | |
1542 | ATTR keyword compression none | |
1543 | ATTR mimeMediaType document-format application/postscript | |
1544 | GROUP job-attributes-tag | |
9b66acc5 | 1545 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1546 | ATTR keyword sides two-sided-long-edge |
1547 | FILE document-letter.ps | |
1548 | ||
1549 | STATUS successful-ok | |
1550 | STATUS server-error-job-canceled | |
1551 | STATUS server-error-busy REPEAT-MATCH | |
1552 | ||
1553 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1554 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1555 | WITH-VALUE >0 | |
d7225fc2 | 1556 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1557 | WITH-VALUE 3,4,5,6,7,8,9 |
1558 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1559 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1560 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1561 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1562 | } | |
1563 | ||
1564 | ||
1565 | # Test JPEG output | |
1566 | { | |
1567 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1568 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1569 | ||
1570 | NAME "Print-Job with Color JPEG on A4" | |
1571 | OPERATION Print-Job | |
1572 | GROUP operation-attributes-tag | |
1573 | ATTR charset attributes-charset utf-8 | |
1574 | ATTR naturalLanguage attributes-natural-language en | |
1575 | ATTR uri printer-uri $uri | |
1576 | ATTR name requesting-user-name $user | |
1577 | ATTR name job-name "Color JPEG on A4" | |
1578 | ATTR boolean ipp-attribute-fidelity false | |
1579 | ATTR name document-name color.jpg | |
1580 | ATTR keyword compression none | |
1581 | ATTR mimeMediaType document-format image/jpeg | |
1582 | GROUP job-attributes-tag | |
9b66acc5 | 1583 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1584 | FILE color.jpg |
1585 | ||
1586 | STATUS successful-ok | |
1587 | STATUS server-error-job-canceled | |
1588 | STATUS server-error-busy REPEAT-MATCH | |
1589 | ||
1590 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1591 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1592 | WITH-VALUE >0 | |
d7225fc2 | 1593 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1594 | WITH-VALUE 3,4,5,6,7,8,9 |
1595 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1596 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1597 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1598 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1599 | } | |
1600 | ||
1601 | { | |
1602 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1603 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1604 | ||
1605 | NAME "Print-Job with Color JPEG on US Letter" | |
1606 | OPERATION Print-Job | |
1607 | GROUP operation-attributes-tag | |
1608 | ATTR charset attributes-charset utf-8 | |
1609 | ATTR naturalLanguage attributes-natural-language en | |
1610 | ATTR uri printer-uri $uri | |
1611 | ATTR name requesting-user-name $user | |
1612 | ATTR name job-name "Color JPEG on US Letter" | |
1613 | ATTR boolean ipp-attribute-fidelity false | |
1614 | ATTR name document-name color.jpg | |
1615 | ATTR keyword compression none | |
1616 | ATTR mimeMediaType document-format image/jpeg | |
1617 | GROUP job-attributes-tag | |
9b66acc5 | 1618 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1619 | FILE color.jpg |
1620 | ||
1621 | STATUS successful-ok | |
1622 | STATUS server-error-job-canceled | |
1623 | STATUS server-error-busy REPEAT-MATCH | |
1624 | ||
1625 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1626 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1627 | WITH-VALUE >0 | |
d7225fc2 | 1628 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1629 | WITH-VALUE 3,4,5,6,7,8,9 |
1630 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1631 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1632 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1633 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1634 | } | |
1635 | ||
1636 | { | |
1637 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1638 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1639 | ||
1640 | NAME "Print-Job with Color JPEG on 4x6" | |
1641 | OPERATION Print-Job | |
1642 | GROUP operation-attributes-tag | |
1643 | ATTR charset attributes-charset utf-8 | |
1644 | ATTR naturalLanguage attributes-natural-language en | |
1645 | ATTR uri printer-uri $uri | |
1646 | ATTR name requesting-user-name $user | |
1647 | ATTR name job-name "Color JPEG on 4x6" | |
1648 | ATTR boolean ipp-attribute-fidelity false | |
1649 | ATTR name document-name color.jpg | |
1650 | ATTR keyword compression none | |
1651 | ATTR mimeMediaType document-format image/jpeg | |
1652 | GROUP job-attributes-tag | |
9b66acc5 | 1653 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1654 | FILE color.jpg |
1655 | ||
1656 | STATUS successful-ok | |
1657 | STATUS server-error-job-canceled | |
1658 | STATUS server-error-busy REPEAT-MATCH | |
1659 | ||
1660 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1661 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1662 | WITH-VALUE >0 | |
d7225fc2 | 1663 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1664 | WITH-VALUE 3,4,5,6,7,8,9 |
1665 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1666 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1667 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1668 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1669 | } | |
1670 | ||
1671 | { | |
1672 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1673 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1674 | ||
1675 | NAME "Print-Job with Grayscale JPEG on A4" | |
1676 | OPERATION Print-Job | |
1677 | GROUP operation-attributes-tag | |
1678 | ATTR charset attributes-charset utf-8 | |
1679 | ATTR naturalLanguage attributes-natural-language en | |
1680 | ATTR uri printer-uri $uri | |
1681 | ATTR name requesting-user-name $user | |
1682 | ATTR name job-name "Grayscale JPEG on A4" | |
1683 | ATTR boolean ipp-attribute-fidelity false | |
1684 | ATTR name document-name gray.jpg | |
1685 | ATTR keyword compression none | |
1686 | ATTR mimeMediaType document-format image/jpeg | |
1687 | GROUP job-attributes-tag | |
9b66acc5 | 1688 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1689 | FILE gray.jpg |
1690 | ||
1691 | STATUS successful-ok | |
1692 | STATUS server-error-job-canceled | |
1693 | STATUS server-error-busy REPEAT-MATCH | |
1694 | ||
1695 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1696 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1697 | WITH-VALUE >0 | |
d7225fc2 | 1698 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1699 | WITH-VALUE 3,4,5,6,7,8,9 |
1700 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1701 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1702 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1703 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1704 | } | |
1705 | ||
1706 | { | |
1707 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1708 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1709 | ||
1710 | NAME "Print-Job with Grayscale JPEG on US Letter" | |
1711 | OPERATION Print-Job | |
1712 | GROUP operation-attributes-tag | |
1713 | ATTR charset attributes-charset utf-8 | |
1714 | ATTR naturalLanguage attributes-natural-language en | |
1715 | ATTR uri printer-uri $uri | |
1716 | ATTR name requesting-user-name $user | |
1717 | ATTR name job-name "Grayscale JPEG on US Letter" | |
1718 | ATTR boolean ipp-attribute-fidelity false | |
1719 | ATTR name document-name gray.jpg | |
1720 | ATTR keyword compression none | |
1721 | ATTR mimeMediaType document-format image/jpeg | |
1722 | GROUP job-attributes-tag | |
9b66acc5 | 1723 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1724 | FILE gray.jpg |
1725 | ||
1726 | STATUS successful-ok | |
1727 | STATUS server-error-job-canceled | |
1728 | STATUS server-error-busy REPEAT-MATCH | |
1729 | ||
1730 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1731 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1732 | WITH-VALUE >0 | |
d7225fc2 | 1733 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1734 | WITH-VALUE 3,4,5,6,7,8,9 |
1735 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1736 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1737 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1738 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1739 | } | |
1740 | ||
1741 | { | |
1742 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1743 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1744 | ||
1745 | NAME "Print-Job with Grayscale JPEG on 4x6" | |
1746 | OPERATION Print-Job | |
1747 | GROUP operation-attributes-tag | |
1748 | ATTR charset attributes-charset utf-8 | |
1749 | ATTR naturalLanguage attributes-natural-language en | |
1750 | ATTR uri printer-uri $uri | |
1751 | ATTR name requesting-user-name $user | |
1752 | ATTR name job-name "Grayscale JPEG on 4x6" | |
1753 | ATTR boolean ipp-attribute-fidelity false | |
1754 | ATTR name document-name gray.jpg | |
1755 | ATTR keyword compression none | |
1756 | ATTR mimeMediaType document-format image/jpeg | |
1757 | GROUP job-attributes-tag | |
9b66acc5 | 1758 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1759 | FILE gray.jpg |
1760 | ||
1761 | STATUS successful-ok | |
1762 | STATUS server-error-job-canceled | |
1763 | STATUS server-error-busy REPEAT-MATCH | |
1764 | ||
1765 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1766 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1767 | WITH-VALUE >0 | |
d7225fc2 | 1768 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1769 | WITH-VALUE 3,4,5,6,7,8,9 |
1770 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1771 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1772 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1773 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1774 | } | |
1775 | ||
1776 | ||
1777 | # Print-Job with job-sheets | |
1778 | { | |
1779 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1780 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1781 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1782 | ||
1783 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1784 | OPERATION Print-Job | |
1785 | GROUP operation-attributes-tag | |
1786 | ATTR charset attributes-charset utf-8 | |
1787 | ATTR naturalLanguage attributes-natural-language en | |
1788 | ATTR uri printer-uri $uri | |
1789 | ATTR name requesting-user-name $user | |
1790 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1791 | ATTR boolean ipp-attribute-fidelity false | |
1792 | ATTR name document-name document-a4.pdf | |
1793 | ATTR keyword compression none | |
1794 | ATTR mimeMediaType document-format application/pdf | |
1795 | GROUP job-attributes-tag | |
9b66acc5 | 1796 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1797 | ATTR keyword job-sheets standard |
1798 | FILE document-a4.pdf | |
1799 | ||
1800 | STATUS successful-ok | |
1801 | STATUS server-error-job-canceled | |
1802 | STATUS server-error-busy REPEAT-MATCH | |
1803 | ||
1804 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1805 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1806 | WITH-VALUE >0 | |
d7225fc2 | 1807 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1808 | WITH-VALUE 3,4,5,6,7,8,9 |
1809 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1810 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1811 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1812 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1813 | } | |
1814 | ||
1815 | { | |
1816 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1817 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1818 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1819 | ||
1820 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1821 | OPERATION Print-Job | |
1822 | GROUP operation-attributes-tag | |
1823 | ATTR charset attributes-charset utf-8 | |
1824 | ATTR naturalLanguage attributes-natural-language en | |
1825 | ATTR uri printer-uri $uri | |
1826 | ATTR name requesting-user-name $user | |
1827 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1828 | ATTR boolean ipp-attribute-fidelity false | |
1829 | ATTR name document-name document-a4.pdf | |
1830 | ATTR keyword compression none | |
1831 | ATTR mimeMediaType document-format application/pdf | |
1832 | GROUP job-attributes-tag | |
9b66acc5 | 1833 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1834 | ATTR keyword job-sheets standard |
1835 | FILE document-a4.pdf | |
1836 | ||
1837 | STATUS successful-ok | |
1838 | STATUS server-error-job-canceled | |
1839 | STATUS server-error-busy REPEAT-MATCH | |
1840 | ||
1841 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1842 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1843 | WITH-VALUE >0 | |
d7225fc2 | 1844 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1845 | WITH-VALUE 3,4,5,6,7,8,9 |
1846 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1847 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1848 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1849 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1850 | } | |
1851 | ||
1852 | { | |
1853 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1854 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1855 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1856 | ||
1857 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1858 | OPERATION Print-Job | |
1859 | GROUP operation-attributes-tag | |
1860 | ATTR charset attributes-charset utf-8 | |
1861 | ATTR naturalLanguage attributes-natural-language en | |
1862 | ATTR uri printer-uri $uri | |
1863 | ATTR name requesting-user-name $user | |
1864 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1865 | ATTR boolean ipp-attribute-fidelity false | |
1866 | ATTR name document-name document-a4.ps | |
1867 | ATTR keyword compression none | |
1868 | ATTR mimeMediaType document-format application/postscript | |
1869 | GROUP job-attributes-tag | |
9b66acc5 | 1870 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1871 | ATTR keyword job-sheets standard |
1872 | FILE document-a4.ps | |
1873 | ||
1874 | STATUS successful-ok | |
1875 | STATUS server-error-job-canceled | |
1876 | STATUS server-error-busy REPEAT-MATCH | |
1877 | ||
1878 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1879 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1880 | WITH-VALUE >0 | |
d7225fc2 | 1881 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1882 | WITH-VALUE 3,4,5,6,7,8,9 |
1883 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1884 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1885 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1886 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1887 | } | |
1888 | ||
1889 | { | |
1890 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1891 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1892 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1893 | ||
1894 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1895 | OPERATION Print-Job | |
1896 | GROUP operation-attributes-tag | |
1897 | ATTR charset attributes-charset utf-8 | |
1898 | ATTR naturalLanguage attributes-natural-language en | |
1899 | ATTR uri printer-uri $uri | |
1900 | ATTR name requesting-user-name $user | |
1901 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1902 | ATTR boolean ipp-attribute-fidelity false | |
1903 | ATTR name document-name document-a4.ps | |
1904 | ATTR keyword compression none | |
1905 | ATTR mimeMediaType document-format application/postscript | |
1906 | GROUP job-attributes-tag | |
9b66acc5 | 1907 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1908 | ATTR keyword job-sheets standard |
1909 | FILE document-a4.ps | |
1910 | ||
1911 | STATUS successful-ok | |
1912 | STATUS server-error-job-canceled | |
1913 | STATUS server-error-busy REPEAT-MATCH | |
1914 | ||
1915 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1916 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1917 | WITH-VALUE >0 | |
d7225fc2 | 1918 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1919 | WITH-VALUE 3,4,5,6,7,8,9 |
1920 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1921 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1922 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1923 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1924 | } | |
1925 | ||
1926 | ||
1927 | # Test number-up output | |
1928 | { | |
1929 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1930 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1931 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1932 | ||
1933 | NAME "Print-Job with A4 PDF, 2-Up" | |
1934 | OPERATION Print-Job | |
1935 | GROUP operation-attributes-tag | |
1936 | ATTR charset attributes-charset utf-8 | |
1937 | ATTR naturalLanguage attributes-natural-language en | |
1938 | ATTR uri printer-uri $uri | |
1939 | ATTR name requesting-user-name $user | |
1940 | ATTR name job-name "A4 Test Document, 2-Up" | |
1941 | ATTR boolean ipp-attribute-fidelity false | |
1942 | ATTR name document-name document-a4.pdf | |
1943 | ATTR keyword compression none | |
1944 | ATTR mimeMediaType document-format application/pdf | |
1945 | GROUP job-attributes-tag | |
9b66acc5 | 1946 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1947 | ATTR integer number-up 2 |
1948 | FILE document-a4.pdf | |
1949 | ||
1950 | STATUS successful-ok | |
1951 | STATUS server-error-job-canceled | |
1952 | STATUS server-error-busy REPEAT-MATCH | |
1953 | ||
1954 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1955 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1956 | WITH-VALUE >0 | |
d7225fc2 | 1957 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1958 | WITH-VALUE 3,4,5,6,7,8,9 |
1959 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1960 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1961 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1962 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1963 | } | |
1964 | ||
1965 | { | |
1966 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1967 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1968 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1969 | ||
1970 | NAME "Print-Job with US Letter PDF, 2-Up" | |
1971 | OPERATION Print-Job | |
1972 | GROUP operation-attributes-tag | |
1973 | ATTR charset attributes-charset utf-8 | |
1974 | ATTR naturalLanguage attributes-natural-language en | |
1975 | ATTR uri printer-uri $uri | |
1976 | ATTR name requesting-user-name $user | |
1977 | ATTR name job-name "US Letter Test Document, 2-Up" | |
1978 | ATTR boolean ipp-attribute-fidelity false | |
1979 | ATTR name document-name document-letter.pdf | |
1980 | ATTR keyword compression none | |
1981 | ATTR mimeMediaType document-format application/pdf | |
1982 | GROUP job-attributes-tag | |
9b66acc5 | 1983 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1984 | ATTR integer number-up 2 |
1985 | FILE document-letter.pdf | |
1986 | ||
1987 | STATUS successful-ok | |
1988 | STATUS server-error-job-canceled | |
1989 | STATUS server-error-busy REPEAT-MATCH | |
1990 | ||
1991 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1992 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1993 | WITH-VALUE >0 | |
d7225fc2 | 1994 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1995 | WITH-VALUE 3,4,5,6,7,8,9 |
1996 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1997 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1998 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1999 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2000 | } | |
2001 | ||
2002 | { | |
2003 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
2004 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
2005 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
2006 | ||
2007 | NAME "Print-Job with A4 PDF, 2-Up" | |
2008 | OPERATION Print-Job | |
2009 | GROUP operation-attributes-tag | |
2010 | ATTR charset attributes-charset utf-8 | |
2011 | ATTR naturalLanguage attributes-natural-language en | |
2012 | ATTR uri printer-uri $uri | |
2013 | ATTR name requesting-user-name $user | |
2014 | ATTR name job-name "A4 Test Document, 2-Up" | |
2015 | ATTR boolean ipp-attribute-fidelity false | |
2016 | ATTR name document-name document-a4.ps | |
2017 | ATTR keyword compression none | |
2018 | ATTR mimeMediaType document-format application/postscript | |
2019 | GROUP job-attributes-tag | |
9b66acc5 | 2020 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
2021 | ATTR integer number-up 2 |
2022 | FILE document-a4.ps | |
2023 | ||
2024 | STATUS successful-ok | |
2025 | STATUS server-error-job-canceled | |
2026 | STATUS server-error-busy REPEAT-MATCH | |
2027 | ||
2028 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2029 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2030 | WITH-VALUE >0 | |
d7225fc2 | 2031 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2032 | WITH-VALUE 3,4,5,6,7,8,9 |
2033 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2034 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2035 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2036 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2037 | } | |
2038 | ||
2039 | { | |
2040 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
2041 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2042 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
2043 | ||
2044 | NAME "Print-Job with US Letter PDF, 2-Up" | |
2045 | OPERATION Print-Job | |
2046 | GROUP operation-attributes-tag | |
2047 | ATTR charset attributes-charset utf-8 | |
2048 | ATTR naturalLanguage attributes-natural-language en | |
2049 | ATTR uri printer-uri $uri | |
2050 | ATTR name requesting-user-name $user | |
2051 | ATTR name job-name "US Letter Test Document, 2-Up" | |
2052 | ATTR boolean ipp-attribute-fidelity false | |
2053 | ATTR name document-name document-letter.ps | |
2054 | ATTR keyword compression none | |
2055 | ATTR mimeMediaType document-format application/postscript | |
2056 | GROUP job-attributes-tag | |
9b66acc5 | 2057 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2058 | ATTR integer number-up 2 |
2059 | FILE document-letter.ps | |
2060 | ||
2061 | STATUS successful-ok | |
2062 | STATUS server-error-job-canceled | |
2063 | STATUS server-error-busy REPEAT-MATCH | |
2064 | ||
2065 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2066 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2067 | WITH-VALUE >0 | |
d7225fc2 | 2068 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2069 | WITH-VALUE 3,4,5,6,7,8,9 |
2070 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2071 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2072 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2073 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2074 | } | |
2075 | ||
2076 | ||
2077 | # Test output with print-quality... | |
2078 | { | |
2079 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2080 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2081 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2082 | ||
2083 | NAME "Print-Job with JPEG on 4x6, Draft Quality" | |
2084 | OPERATION Print-Job | |
2085 | GROUP operation-attributes-tag | |
2086 | ATTR charset attributes-charset utf-8 | |
2087 | ATTR naturalLanguage attributes-natural-language en | |
2088 | ATTR uri printer-uri $uri | |
2089 | ATTR name requesting-user-name $user | |
2090 | ATTR name job-name "4x6 Color JPEG, Draft Quality" | |
2091 | ATTR boolean ipp-attribute-fidelity false | |
2092 | ATTR name document-name color.jpg | |
2093 | ATTR keyword compression none | |
2094 | ATTR mimeMediaType document-format image/jpeg | |
2095 | GROUP job-attributes-tag | |
9b66acc5 | 2096 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2097 | ATTR enum print-quality 3 |
2098 | FILE color.jpeg | |
2099 | ||
2100 | STATUS successful-ok | |
2101 | STATUS server-error-job-canceled | |
2102 | STATUS server-error-busy REPEAT-MATCH | |
2103 | ||
2104 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2105 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2106 | WITH-VALUE >0 | |
d7225fc2 | 2107 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2108 | WITH-VALUE 3,4,5,6,7,8,9 |
2109 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2110 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2111 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2112 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2113 | } | |
2114 | ||
2115 | { | |
2116 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2117 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2118 | SKIP-IF-NOT-DEFINED OPTIONAL_NORMAL_QUALITY | |
2119 | ||
2120 | NAME "Print-Job with JPEG on 4x6, Normal Quality" | |
2121 | OPERATION Print-Job | |
2122 | GROUP operation-attributes-tag | |
2123 | ATTR charset attributes-charset utf-8 | |
2124 | ATTR naturalLanguage attributes-natural-language en | |
2125 | ATTR uri printer-uri $uri | |
2126 | ATTR name requesting-user-name $user | |
2127 | ATTR name job-name "4x6 Color JPEG, Normal Quality" | |
2128 | ATTR boolean ipp-attribute-fidelity false | |
2129 | ATTR name document-name color.jpg | |
2130 | ATTR keyword compression none | |
2131 | ATTR mimeMediaType document-format image/jpeg | |
2132 | GROUP job-attributes-tag | |
9b66acc5 | 2133 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2134 | ATTR enum print-quality 4 |
2135 | FILE color.jpeg | |
2136 | ||
2137 | STATUS successful-ok | |
2138 | STATUS server-error-job-canceled | |
2139 | STATUS server-error-busy REPEAT-MATCH | |
2140 | ||
2141 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2142 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2143 | WITH-VALUE >0 | |
d7225fc2 | 2144 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2145 | WITH-VALUE 3,4,5,6,7,8,9 |
2146 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2147 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2148 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2149 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2150 | } | |
2151 | ||
2152 | { | |
2153 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2154 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2155 | SKIP-IF-NOT-DEFINED OPTIONAL_HIGH_QUALITY | |
2156 | ||
2157 | NAME "Print-Job with JPEG on 4x6, High Quality" | |
2158 | OPERATION Print-Job | |
2159 | GROUP operation-attributes-tag | |
2160 | ATTR charset attributes-charset utf-8 | |
2161 | ATTR naturalLanguage attributes-natural-language en | |
2162 | ATTR uri printer-uri $uri | |
2163 | ATTR name requesting-user-name $user | |
2164 | ATTR name job-name "4x6 Color JPEG, High Quality" | |
2165 | ATTR boolean ipp-attribute-fidelity false | |
2166 | ATTR name document-name color.jpg | |
2167 | ATTR keyword compression none | |
2168 | ATTR mimeMediaType document-format image/jpeg | |
2169 | GROUP job-attributes-tag | |
9b66acc5 | 2170 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2171 | ATTR enum print-quality 5 |
2172 | FILE color.jpeg | |
2173 | ||
2174 | STATUS successful-ok | |
2175 | STATUS server-error-job-canceled | |
2176 | STATUS server-error-busy REPEAT-MATCH | |
2177 | ||
2178 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2179 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2180 | WITH-VALUE >0 | |
d7225fc2 | 2181 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2182 | WITH-VALUE 3,4,5,6,7,8,9 |
2183 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2184 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2185 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2186 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2187 | } | |
2188 | ||
2189 | { | |
2190 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2191 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
2192 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2193 | ||
2194 | NAME "Print-Job with A4 PDF, Draft Quality" | |
2195 | OPERATION Print-Job | |
2196 | GROUP operation-attributes-tag | |
2197 | ATTR charset attributes-charset utf-8 | |
2198 | ATTR naturalLanguage attributes-natural-language en | |
2199 | ATTR uri printer-uri $uri | |
2200 | ATTR name requesting-user-name $user | |
2201 | ATTR name job-name "A4 Test Document, 2-Up" | |
2202 | ATTR boolean ipp-attribute-fidelity false | |
2203 | ATTR name document-name document-a4.pdf | |
2204 | ATTR keyword compression none | |
2205 | ATTR mimeMediaType document-format application/pdf | |
2206 | GROUP job-attributes-tag | |
9b66acc5 | 2207 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
2208 | ATTR enum print-quality 3 |
2209 | FILE document-a4.pdf | |
2210 | ||
2211 | STATUS successful-ok | |
2212 | STATUS server-error-job-canceled | |
2213 | STATUS server-error-busy REPEAT-MATCH | |
2214 | ||
2215 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2216 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2217 | WITH-VALUE >0 | |
d7225fc2 | 2218 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2219 | WITH-VALUE 3,4,5,6,7,8,9 |
2220 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2221 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2222 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2223 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2224 | } | |
2225 | ||
2226 | { | |
2227 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2228 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2229 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2230 | ||
2231 | NAME "Print-Job with US Letter PDF, Draft Quality" | |
2232 | OPERATION Print-Job | |
2233 | GROUP operation-attributes-tag | |
2234 | ATTR charset attributes-charset utf-8 | |
2235 | ATTR naturalLanguage attributes-natural-language en | |
2236 | ATTR uri printer-uri $uri | |
2237 | ATTR name requesting-user-name $user | |
2238 | ATTR name job-name "US Letter Test Document, 2-Up" | |
2239 | ATTR boolean ipp-attribute-fidelity false | |
2240 | ATTR name document-name document-letter.pdf | |
2241 | ATTR keyword compression none | |
2242 | ATTR mimeMediaType document-format application/pdf | |
2243 | GROUP job-attributes-tag | |
9b66acc5 | 2244 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2245 | ATTR enum print-quality 3 |
2246 | FILE document-letter.pdf | |
2247 | ||
2248 | STATUS successful-ok | |
2249 | STATUS server-error-job-canceled | |
2250 | STATUS server-error-busy REPEAT-MATCH | |
2251 | ||
2252 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2253 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2254 | WITH-VALUE >0 | |
d7225fc2 | 2255 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2256 | WITH-VALUE 3,4,5,6,7,8,9 |
2257 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2258 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2259 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2260 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2261 | } | |
2262 | ||
2263 | ||
9b66acc5 MS |
2264 | # Test hold/release in the context of Print-Job w/job-hold-until + Release-Job |
2265 | { | |
2266 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2267 | ||
2268 | NAME "Print-Job with job-hold-until" | |
2269 | OPERATION Print-Job | |
2270 | GROUP operation-attributes-tag | |
2271 | ATTR charset attributes-charset utf-8 | |
2272 | ATTR naturalLanguage attributes-natural-language en | |
2273 | ATTR uri printer-uri $uri | |
2274 | ATTR name requesting-user-name $user | |
2275 | ATTR name job-name "Test Document w/Hold" | |
2276 | ATTR name document-name $filename | |
2277 | ATTR keyword compression none | |
2278 | ATTR mimeMediaType document-format $filetype | |
2279 | GROUP job-attributes-tag | |
2280 | ATTR keyword job-hold-until indefinite | |
2281 | FILE $filename | |
2282 | ||
2283 | STATUS successful-ok | |
2284 | STATUS server-error-job-canceled | |
2285 | STATUS server-error-busy REPEAT-MATCH | |
2286 | ||
2287 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2288 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2289 | WITH-VALUE >0 | |
d7225fc2 | 2290 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
9b66acc5 MS |
2291 | WITH-VALUE 3,4,5,6,7,8,9 |
2292 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2293 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2294 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2295 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2296 | } | |
2297 | ||
2298 | { | |
2299 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2300 | ||
2301 | NAME "Release-Job" | |
2302 | OPERATION Release-Job | |
2303 | GROUP operation-attributes-tag | |
2304 | ATTR charset attributes-charset utf-8 | |
2305 | ATTR naturalLanguage attributes-natural-language en | |
2306 | ATTR uri printer-uri $uri | |
2307 | ATTR integer job-id $job-id | |
2308 | ATTR name requesting-user-name $user | |
2309 | ||
2310 | STATUS successful-ok | |
2311 | STATUS client-error-not-possible | |
2312 | } | |
2313 | ||
2314 | ||
f8b3a85b MS |
2315 | # |
2316 | # End of "$Id$". | |
2317 | # |