]>
Commit | Line | Data |
---|---|---|
f8b3a85b MS |
1 | # |
2 | # "$Id$" | |
3 | # | |
4 | # IPP/1.1 test suite. | |
5 | # | |
dcb445bc | 6 | # Copyright 2007-2012 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 | |
82cc1f9a | 98 | EXPECT printer-uri-supported OF-TYPE uri WITH-ALL-VALUES "$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 | |
82cc1f9a | 328 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag SAME-COUNT-AS uri-security-supported WITH-ALL-VALUES "$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 | ||
82cc1f9a | 351 | EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag WITH-ALL-VALUES "$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 | { | |
a2326b5b MS |
659 | SKIP-IF-NOT-DEFINED job-id |
660 | ||
d7225fc2 MS |
661 | NAME "Get-Job-Attributes Until Job Complete" |
662 | OPERATION Get-Job-Attributes | |
663 | GROUP operation-attributes-tag | |
664 | ATTR charset attributes-charset utf-8 | |
665 | ATTR naturalLanguage attributes-natural-language en | |
666 | ATTR uri printer-uri $uri | |
667 | ATTR integer job-id $job-id | |
668 | ATTR name requesting-user-name $user | |
669 | ||
670 | STATUS successful-ok | |
dcb445bc MS |
671 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >6 REPEAT-NO-MATCH |
672 | DISPLAY job-state | |
d7225fc2 MS |
673 | } |
674 | ||
675 | ||
f8b3a85b MS |
676 | # Test Get-Jobs operation |
677 | # | |
678 | # Required by: RFC 2911 section 3.2.6 | |
679 | { | |
83e08001 | 680 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs=completed)" |
f8b3a85b MS |
681 | OPERATION Get-Jobs |
682 | GROUP operation-attributes-tag | |
683 | ATTR charset attributes-charset utf-8 | |
684 | ATTR naturalLanguage attributes-natural-language en | |
685 | ATTR uri printer-uri $uri | |
686 | ATTR name requesting-user-name $user | |
687 | ATTR keyword which-jobs completed | |
f8b3a85b MS |
688 | |
689 | STATUS successful-ok | |
690 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 691 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
692 | EXPECT !job-printer-uri |
693 | EXPECT !job-more-info | |
694 | EXPECT !job-name | |
695 | EXPECT !job-originating-user-name | |
696 | EXPECT !job-state | |
697 | EXPECT !job-state-reasons | |
698 | EXPECT !job-state-message | |
699 | EXPECT !job-detailed-status-messages | |
700 | EXPECT !number-of-documents | |
701 | EXPECT !output-device-assigned | |
702 | EXPECT !time-at-creation | |
703 | EXPECT !time-at-processing | |
704 | EXPECT !time-at-completed | |
705 | EXPECT !job-printer-up-time | |
706 | EXPECT !date-time-at-creation | |
707 | EXPECT !date-time-at-processing | |
708 | EXPECT !date-time-at-completed | |
709 | EXPECT !number-of-intervening-jobs | |
710 | EXPECT !job-message-from-operator | |
711 | EXPECT !job-k-octets | |
712 | EXPECT !job-impressions | |
713 | EXPECT !job-media-sheets | |
714 | EXPECT !job-k-octets-processed | |
715 | EXPECT !job-impressions-completed | |
716 | EXPECT !job-media-sheets-completed | |
717 | ||
718 | EXPECT !copies | |
719 | EXPECT !finishings | |
720 | EXPECT !job-hold-until | |
721 | EXPECT !job-priority | |
722 | EXPECT !job-sheets | |
723 | EXPECT !media | |
724 | EXPECT !multiple-document-handling | |
725 | EXPECT !number-up | |
726 | EXPECT !orientation-requested | |
727 | EXPECT !pages-ranges | |
728 | EXPECT !print-quality | |
729 | EXPECT !printer-resolution | |
730 | EXPECT !sides | |
731 | } | |
732 | ||
733 | ||
83e08001 MS |
734 | # Test Get-Jobs operation |
735 | # | |
736 | # Required by: RFC 2911 section 3.2.6 | |
737 | { | |
738 | SKIP-IF-DEFINED PRINT_JOB_COMPLETED | |
739 | ||
740 | NAME "RFC 2911 section 3.2.6: Get-Jobs Operation (which-jobs, requested-attributes)" | |
741 | OPERATION Get-Jobs | |
742 | GROUP operation-attributes-tag | |
743 | ATTR charset attributes-charset utf-8 | |
744 | ATTR naturalLanguage attributes-natural-language en | |
745 | ATTR uri printer-uri $uri | |
746 | ATTR name requesting-user-name $user | |
747 | ATTR keyword requested-attributes all | |
748 | ATTR keyword which-jobs completed | |
749 | ||
750 | STATUS successful-ok | |
751 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
752 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
753 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" | |
754 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
755 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
756 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 | 757 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 |
83e08001 MS |
758 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
759 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
760 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
761 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
762 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 MS |
763 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 |
764 | EXPECT time-at-processing OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
765 | EXPECT time-at-completed OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
766 | EXPECT job-printer-up-time OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 | |
767 | EXPECT ?date-time-at-creation OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
768 | EXPECT ?date-time-at-processing OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
769 | EXPECT ?date-time-at-completed OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
83e08001 MS |
770 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 |
771 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
772 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
773 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
774 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
775 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
776 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
777 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
778 | ||
779 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
780 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
781 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
782 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
783 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
784 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
785 | 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)$$/" | |
786 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
787 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
788 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
789 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
790 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
791 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
792 | } | |
793 | ||
794 | ||
f8b3a85b MS |
795 | # Test Cancel-Job operation |
796 | # | |
797 | # Required by: RFC 2911 section 3.3.3 | |
798 | { | |
83e08001 | 799 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (completed job)" |
f8b3a85b MS |
800 | OPERATION Cancel-Job |
801 | GROUP operation-attributes-tag | |
802 | ATTR charset attributes-charset utf-8 | |
803 | ATTR naturalLanguage attributes-natural-language en | |
804 | ATTR uri printer-uri $uri | |
805 | ATTR integer job-id $job-id | |
806 | ATTR name requesting-user-name $user | |
807 | ||
808 | STATUS client-error-not-possible | |
809 | } | |
810 | ||
811 | ||
812 | # Test Print-Job operation | |
813 | # | |
814 | # Required by: RFC 2911 section 3.2.1 | |
815 | { | |
83e08001 | 816 | NAME "RFC 2911 section 3.2.1: Print-Job Operation" |
f8b3a85b MS |
817 | OPERATION Print-Job |
818 | GROUP operation-attributes-tag | |
819 | ATTR charset attributes-charset utf-8 | |
820 | ATTR naturalLanguage attributes-natural-language en | |
821 | ATTR uri printer-uri $uri | |
822 | ATTR name requesting-user-name $user | |
823 | ATTR name job-name $filename | |
824 | ATTR boolean ipp-attribute-fidelity false | |
825 | ATTR name document-name $filename | |
826 | ATTR keyword compression none | |
83e08001 | 827 | ATTR mimeMediaType document-format $filetype |
f8b3a85b MS |
828 | FILE $filename |
829 | ||
830 | STATUS successful-ok | |
831 | STATUS client-error-document-format-not-supported | |
83e08001 MS |
832 | STATUS server-error-job-canceled |
833 | STATUS server-error-busy REPEAT-MATCH | |
834 | ||
f99f3698 | 835 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" |
f8b3a85b MS |
836 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag |
837 | WITH-VALUE >0 | |
d7225fc2 | 838 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
f8b3a85b MS |
839 | WITH-VALUE 3,4,5,6,7,8,9 |
840 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
841 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
842 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
843 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
844 | } | |
845 | ||
846 | ||
847 | # Test Cancel-Job operation | |
848 | # | |
849 | # Required by: RFC 2911 section 3.3.3 | |
850 | { | |
83e08001 | 851 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation (pending/processing job)" |
f8b3a85b MS |
852 | OPERATION Cancel-Job |
853 | GROUP operation-attributes-tag | |
854 | ATTR charset attributes-charset utf-8 | |
855 | ATTR naturalLanguage attributes-natural-language en | |
856 | ATTR uri printer-uri $uri | |
857 | ATTR integer job-id $job-id | |
858 | ATTR name requesting-user-name $user | |
859 | ||
860 | STATUS successful-ok | |
c779abb0 | 861 | STATUS client-error-not-possible |
f8b3a85b MS |
862 | } |
863 | ||
864 | ||
865 | # Test Get-Job-Attributes operation | |
866 | # | |
867 | # Required by: RFC 2911 section 3.3.4 | |
868 | { | |
83e08001 | 869 | NAME "RFC 2911 section 3.3.4: Get-Job-Attributes Operation" |
f8b3a85b MS |
870 | OPERATION Get-Job-Attributes |
871 | GROUP operation-attributes-tag | |
872 | ATTR charset attributes-charset utf-8 | |
873 | ATTR naturalLanguage attributes-natural-language en | |
874 | ATTR uri printer-uri $uri | |
875 | ATTR integer job-id $job-id | |
876 | ATTR name requesting-user-name $user | |
877 | ||
878 | STATUS successful-ok | |
879 | EXPECT job-id OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
f99f3698 | 880 | EXPECT job-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
83e08001 MS |
881 | EXPECT job-printer-uri OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$IPP_URI_SCHEME" |
882 | EXPECT ?job-more-info OF-TYPE uri IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "$HTTP_URI_SCHEME" | |
f8b3a85b MS |
883 | EXPECT job-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 |
884 | EXPECT job-originating-user-name OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 | 885 | EXPECT job-state OF-TYPE unknown|enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >2,<10 |
f8b3a85b MS |
886 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag |
887 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
888 | EXPECT ?job-detailed-status-messages OF-TYPE text IN-GROUP job-attributes-tag | |
889 | EXPECT ?number-of-documents OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
890 | EXPECT ?output-device-assigned OF-TYPE name IN-GROUP job-attributes-tag COUNT 1 | |
d7225fc2 MS |
891 | EXPECT time-at-creation OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 |
892 | EXPECT time-at-processing OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
893 | EXPECT time-at-completed OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >-1 | |
894 | EXPECT job-printer-up-time OF-TYPE no-value|integer IN-GROUP job-attributes-tag COUNT 1 | |
895 | EXPECT ?date-time-at-creation OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
896 | EXPECT ?date-time-at-processing OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
897 | EXPECT ?date-time-at-completed OF-TYPE no-value|dateTime IN-GROUP job-attributes-tag COUNT 1 | |
f8b3a85b MS |
898 | EXPECT ?number-of-intervening-jobs OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 |
899 | EXPECT ?job-message-from-operator OF-TYPE text IN-GROUP job-attributes-tag COUNT 1 | |
900 | EXPECT ?job-k-octets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
901 | EXPECT ?job-impressions OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
902 | EXPECT ?job-media-sheets OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
903 | EXPECT ?job-k-octets-processed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
904 | EXPECT ?job-impressions-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
905 | EXPECT ?job-media-sheets-completed OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 | |
906 | ||
907 | EXPECT ?copies OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
908 | EXPECT ?finishings OF-TYPE enum IN-GROUP job-attributes-tag | |
909 | EXPECT ?job-hold-until OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
910 | EXPECT ?job-priority OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0,<101 | |
911 | EXPECT ?job-sheets OF-TYPE keyword|name IN-GROUP job-attributes-tag | |
912 | EXPECT ?media OF-TYPE keyword|name IN-GROUP job-attributes-tag COUNT 1 | |
913 | 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)$$/" | |
914 | EXPECT ?number-up OF-TYPE integer IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE >0 | |
915 | EXPECT ?orientation-requested OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 | |
916 | EXPECT ?pages-ranges OF-TYPE rangeOfInteger IN-GROUP job-attributes-tag | |
917 | EXPECT ?print-quality OF-TYPE enum IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE 3,4,5 | |
918 | EXPECT ?printer-resolution OF-TYPE resolution IN-GROUP job-attributes-tag COUNT 1 | |
919 | EXPECT ?sides OF-TYPE keyword IN-GROUP job-attributes-tag COUNT 1 WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" | |
920 | } | |
921 | ||
922 | ||
83e08001 MS |
923 | # Test Print-URI operation |
924 | # | |
925 | # Defined by: RFC 2911 section 3.2.2 | |
926 | { | |
927 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
928 | SKIP-IF-NOT-DEFINED document-uri | |
929 | ||
930 | NAME "RFC 2911 section 3.2.2: Print-URI Operation" | |
931 | OPERATION Print-URI | |
932 | GROUP operation-attributes-tag | |
933 | ATTR charset attributes-charset utf-8 | |
934 | ATTR naturalLanguage attributes-natural-language en | |
935 | ATTR uri printer-uri $uri | |
936 | ATTR name requesting-user-name $user | |
937 | ATTR name job-name $filename | |
938 | ATTR boolean ipp-attribute-fidelity false | |
939 | ATTR name document-name $filename | |
940 | ATTR keyword compression none | |
941 | ATTR uri document-uri $document-uri | |
942 | ||
943 | STATUS successful-ok | |
944 | STATUS server-error-job-canceled | |
945 | STATUS server-error-busy REPEAT-MATCH | |
946 | ||
947 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
948 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
949 | WITH-VALUE >0 | |
d7225fc2 | 950 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
951 | WITH-VALUE 3,4,5,6,7,8,9 |
952 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
953 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
954 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
955 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
956 | } | |
957 | ||
958 | ||
959 | # Test Print-URI operation with bad document-uri | |
960 | # | |
961 | # Defined by: RFC 2911 section 3.2.2 | |
962 | { | |
963 | SKIP-IF-NOT-DEFINED OPTIONAL_PRINT_URI | |
d7225fc2 | 964 | SKIP-IF-NOT-DEFINED document-uri |
83e08001 MS |
965 | |
966 | NAME "Print-URI with bad URI: Print-URI Operation" | |
967 | OPERATION Print-URI | |
968 | GROUP operation-attributes-tag | |
969 | ATTR charset attributes-charset utf-8 | |
970 | ATTR naturalLanguage attributes-natural-language en | |
971 | ATTR uri printer-uri $uri | |
972 | ATTR name requesting-user-name $user | |
973 | ATTR name job-name $filename | |
974 | ATTR boolean ipp-attribute-fidelity false | |
975 | ATTR name document-name $filename | |
976 | ATTR keyword compression none | |
977 | ATTR uri document-uri "bogus://bogus" | |
978 | ||
979 | STATUS client-error-uri-scheme-not-supported | |
980 | ||
981 | EXPECT !job-uri | |
982 | EXPECT !job-id | |
983 | EXPECT !job-state | |
984 | EXPECT !job-state-reasons | |
985 | EXPECT !job-state-message | |
986 | } | |
987 | ||
988 | ||
989 | # Test Create-Job and Send-Document operations | |
990 | # | |
991 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
992 | { | |
993 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
994 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
995 | ||
996 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
997 | OPERATION Create-Job | |
998 | GROUP operation-attributes-tag | |
999 | ATTR charset attributes-charset utf-8 | |
1000 | ATTR naturalLanguage attributes-natural-language en | |
1001 | ATTR uri printer-uri $uri | |
1002 | ATTR name requesting-user-name $user | |
1003 | ATTR name job-name $filename | |
1004 | ATTR boolean ipp-attribute-fidelity false | |
1005 | ||
1006 | STATUS successful-ok | |
1007 | ||
1008 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1009 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1010 | WITH-VALUE >0 | |
d7225fc2 | 1011 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1012 | WITH-VALUE 3,4,5,6,7,8,9 |
1013 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1014 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1015 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1016 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1017 | } | |
1018 | ||
1019 | { | |
1020 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1021 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1022 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1023 | |
1024 | NAME "RFC 2911 section 3.3.1: Send-Document Operation" | |
1025 | OPERATION Send-Document | |
1026 | GROUP operation-attributes-tag | |
1027 | ATTR charset attributes-charset utf-8 | |
1028 | ATTR naturalLanguage attributes-natural-language en | |
1029 | ATTR uri printer-uri $uri | |
1030 | ATTR integer job-id $job-id | |
1031 | ATTR name requesting-user-name $user | |
1032 | ATTR boolean last-document true | |
1033 | ATTR name document-name $filename | |
1034 | ATTR keyword compression none | |
1035 | ATTR mimeMediaType document-format $filetype | |
1036 | FILE $filename | |
1037 | ||
1038 | STATUS successful-ok | |
1039 | STATUS client-error-document-format-not-supported | |
1040 | STATUS server-error-job-canceled | |
1041 | } | |
1042 | ||
1043 | # Test Create-Job and Send-Document operations (no last-document) | |
1044 | # | |
1045 | # Defined by: RFC 2911 section 3.2.4 and 3.3.1 | |
1046 | { | |
1047 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1048 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
1049 | ||
1050 | NAME "Send-Document missing last-document: Create-Job Operation" | |
1051 | OPERATION Create-Job | |
1052 | GROUP operation-attributes-tag | |
1053 | ATTR charset attributes-charset utf-8 | |
1054 | ATTR naturalLanguage attributes-natural-language en | |
1055 | ATTR uri printer-uri $uri | |
1056 | ATTR name requesting-user-name $user | |
1057 | ATTR name job-name $filename | |
1058 | ATTR boolean ipp-attribute-fidelity false | |
1059 | ||
1060 | STATUS successful-ok | |
1061 | ||
1062 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1063 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1064 | WITH-VALUE >0 | |
d7225fc2 | 1065 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1066 | WITH-VALUE 3,4,5,6,7,8,9 |
1067 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1068 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1069 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1070 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1071 | } | |
1072 | ||
1073 | { | |
1074 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1075 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1076 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1077 | |
1078 | NAME "Send-Document missing last-document: Send-Document Operation" | |
1079 | OPERATION Send-Document | |
1080 | GROUP operation-attributes-tag | |
1081 | ATTR charset attributes-charset utf-8 | |
1082 | ATTR naturalLanguage attributes-natural-language en | |
1083 | ATTR uri printer-uri $uri | |
1084 | ATTR integer job-id $job-id | |
1085 | ATTR name requesting-user-name $user | |
1086 | ATTR name document-name $filename | |
1087 | ATTR keyword compression none | |
1088 | ATTR mimeMediaType document-format $filetype | |
1089 | FILE $filename | |
1090 | ||
1091 | STATUS client-error-bad-request | |
1092 | } | |
1093 | ||
1094 | { | |
1095 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1096 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_DOCUMENT | |
9b66acc5 | 1097 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1098 | |
1099 | NAME "RFC 2911 section 3.3.3: Cancel-Job Operation" | |
1100 | OPERATION Cancel-Job | |
1101 | GROUP operation-attributes-tag | |
1102 | ATTR charset attributes-charset utf-8 | |
1103 | ATTR naturalLanguage attributes-natural-language en | |
1104 | ATTR uri printer-uri $uri | |
1105 | ATTR integer job-id $job-id | |
1106 | ATTR name requesting-user-name $user | |
1107 | ||
1108 | STATUS successful-ok | |
1109 | STATUS server-error-job-canceled | |
1110 | } | |
1111 | ||
1112 | # Test Create-Job and Send-URI operations | |
1113 | # | |
1114 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1115 | { | |
1116 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1117 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1118 | SKIP-IF-NOT-DEFINED document-uri | |
1119 | ||
1120 | NAME "RFC 2911 section 3.2.4: Create-Job Operation" | |
1121 | OPERATION Create-Job | |
1122 | GROUP operation-attributes-tag | |
1123 | ATTR charset attributes-charset utf-8 | |
1124 | ATTR naturalLanguage attributes-natural-language en | |
1125 | ATTR uri printer-uri $uri | |
1126 | ATTR name requesting-user-name $user | |
1127 | ATTR name job-name $filename | |
1128 | ATTR boolean ipp-attribute-fidelity false | |
1129 | ||
1130 | STATUS successful-ok | |
1131 | ||
1132 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1133 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1134 | WITH-VALUE >0 | |
d7225fc2 | 1135 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1136 | WITH-VALUE 3,4,5,6,7,8,9 |
1137 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1138 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1139 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1140 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1141 | } | |
1142 | ||
1143 | { | |
1144 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1145 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1146 | SKIP-IF-NOT-DEFINED document-uri | |
9b66acc5 | 1147 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1148 | |
1149 | NAME "RFC 2911 section 3.3.2: Send-URI Operation" | |
1150 | OPERATION Send-URI | |
1151 | GROUP operation-attributes-tag | |
1152 | ATTR charset attributes-charset utf-8 | |
1153 | ATTR naturalLanguage attributes-natural-language en | |
1154 | ATTR uri printer-uri $uri | |
1155 | ATTR integer job-id $job-id | |
1156 | ATTR name requesting-user-name $user | |
1157 | ATTR boolean last-document true | |
1158 | ATTR name document-name $filename | |
1159 | ATTR keyword compression none | |
1160 | ATTR uri document-uri $document-uri | |
1161 | ||
1162 | STATUS successful-ok | |
1163 | STATUS server-error-job-canceled | |
1164 | } | |
1165 | ||
1166 | ||
1167 | # Test Create-Job and Send-URI operations (bad URI) | |
1168 | # | |
1169 | # Defined by: RFC 2911 section 3.2.4 and 3.3.2 | |
1170 | { | |
1171 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1172 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
1173 | ||
1174 | NAME "Send-URI with bad URI: Create-Job Operation" | |
1175 | OPERATION Create-Job | |
1176 | GROUP operation-attributes-tag | |
1177 | ATTR charset attributes-charset utf-8 | |
1178 | ATTR naturalLanguage attributes-natural-language en | |
1179 | ATTR uri printer-uri $uri | |
1180 | ATTR name requesting-user-name $user | |
1181 | ATTR name job-name $filename | |
1182 | ATTR boolean ipp-attribute-fidelity false | |
1183 | ||
1184 | STATUS successful-ok | |
1185 | ||
1186 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1187 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1188 | WITH-VALUE >0 | |
d7225fc2 | 1189 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1190 | WITH-VALUE 3,4,5,6,7,8,9 |
1191 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1192 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1193 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1194 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1195 | } | |
1196 | ||
1197 | { | |
1198 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1199 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
d7225fc2 | 1200 | SKIP-IF-NOT-DEFINED document-uri |
9b66acc5 | 1201 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1202 | |
1203 | NAME "Send-URI with bad URI: Send-URI Operation (bad URI)" | |
1204 | OPERATION Send-URI | |
1205 | GROUP operation-attributes-tag | |
1206 | ATTR charset attributes-charset utf-8 | |
1207 | ATTR naturalLanguage attributes-natural-language en | |
1208 | ATTR uri printer-uri $uri | |
1209 | ATTR integer job-id $job-id | |
1210 | ATTR name requesting-user-name $user | |
1211 | ATTR boolean last-document true | |
1212 | ATTR name document-name $filename | |
1213 | ATTR keyword compression none | |
1214 | ATTR mimeMediaType document-format $filetype | |
1215 | ATTR uri document-uri "bogus://bogus" | |
1216 | ||
1217 | STATUS client-error-uri-scheme-not-supported | |
1218 | } | |
1219 | ||
1220 | { | |
1221 | SKIP-IF-NOT-DEFINED OPTIONAL_CREATE_JOB | |
1222 | SKIP-IF-NOT-DEFINED OPTIONAL_SEND_URI | |
9b66acc5 | 1223 | SKIP-PREVIOUS-ERROR yes |
83e08001 MS |
1224 | |
1225 | NAME "Send-URI with bad URI: Cancel-Job Operation" | |
1226 | OPERATION Cancel-Job | |
1227 | GROUP operation-attributes-tag | |
1228 | ATTR charset attributes-charset utf-8 | |
1229 | ATTR naturalLanguage attributes-natural-language en | |
1230 | ATTR uri printer-uri $uri | |
1231 | ATTR integer job-id $job-id | |
1232 | ATTR name requesting-user-name $user | |
1233 | ||
1234 | STATUS successful-ok | |
1235 | STATUS server-error-job-canceled | |
1236 | } | |
1237 | ||
1238 | ||
1239 | # Test multiple copy output | |
1240 | { | |
1241 | SKIP-IF-NOT-DEFINED OPTIONAL_COPIES | |
1242 | ||
1243 | NAME "Print-Job with copies" | |
1244 | OPERATION Print-Job | |
1245 | GROUP operation-attributes-tag | |
1246 | ATTR charset attributes-charset utf-8 | |
1247 | ATTR naturalLanguage attributes-natural-language en | |
1248 | ATTR uri printer-uri $uri | |
1249 | ATTR name requesting-user-name $user | |
1250 | ATTR name job-name $filename | |
1251 | ATTR boolean ipp-attribute-fidelity false | |
1252 | ATTR name document-name $filename | |
1253 | ATTR keyword compression none | |
1254 | ATTR mimeMediaType document-format $filetype | |
1255 | GROUP job-attributes-tag | |
1256 | ATTR integer copies 2 | |
1257 | FILE $filename | |
1258 | ||
1259 | STATUS successful-ok | |
1260 | STATUS client-error-document-format-not-supported | |
1261 | STATUS server-error-job-canceled | |
1262 | STATUS server-error-busy REPEAT-MATCH | |
1263 | ||
1264 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1265 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1266 | WITH-VALUE >0 | |
d7225fc2 | 1267 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1268 | WITH-VALUE 3,4,5,6,7,8,9 |
1269 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1270 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1271 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1272 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1273 | } | |
1274 | ||
1275 | ||
1276 | # Test PDF output | |
1277 | { | |
1278 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1279 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1280 | ||
1281 | NAME "Print-Job with A4 PDF" | |
1282 | OPERATION Print-Job | |
1283 | GROUP operation-attributes-tag | |
1284 | ATTR charset attributes-charset utf-8 | |
1285 | ATTR naturalLanguage attributes-natural-language en | |
1286 | ATTR uri printer-uri $uri | |
1287 | ATTR name requesting-user-name $user | |
1288 | ATTR name job-name "A4 Test Document" | |
1289 | ATTR boolean ipp-attribute-fidelity false | |
1290 | ATTR name document-name document-a4.pdf | |
1291 | ATTR keyword compression none | |
1292 | ATTR mimeMediaType document-format application/pdf | |
1293 | GROUP job-attributes-tag | |
9b66acc5 | 1294 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1295 | FILE document-a4.pdf |
1296 | ||
1297 | STATUS successful-ok | |
1298 | STATUS server-error-job-canceled | |
1299 | STATUS server-error-busy REPEAT-MATCH | |
1300 | ||
1301 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1302 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1303 | WITH-VALUE >0 | |
d7225fc2 | 1304 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1305 | WITH-VALUE 3,4,5,6,7,8,9 |
1306 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1307 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1308 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1309 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1310 | } | |
1311 | ||
1312 | { | |
1313 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1314 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1315 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1316 | ||
1317 | NAME "Print-Job with A4 PDF, Duplex" | |
1318 | OPERATION Print-Job | |
1319 | GROUP operation-attributes-tag | |
1320 | ATTR charset attributes-charset utf-8 | |
1321 | ATTR naturalLanguage attributes-natural-language en | |
1322 | ATTR uri printer-uri $uri | |
1323 | ATTR name requesting-user-name $user | |
1324 | ATTR name job-name "A4 Test Document, Duplex" | |
1325 | ATTR boolean ipp-attribute-fidelity false | |
1326 | ATTR name document-name document-a4.pdf | |
1327 | ATTR keyword compression none | |
1328 | ATTR mimeMediaType document-format application/pdf | |
1329 | GROUP job-attributes-tag | |
9b66acc5 | 1330 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1331 | ATTR keyword sides two-sided-long-edge |
1332 | FILE document-a4.pdf | |
1333 | ||
1334 | STATUS successful-ok | |
1335 | STATUS server-error-job-canceled | |
1336 | STATUS server-error-busy REPEAT-MATCH | |
1337 | ||
1338 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1339 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1340 | WITH-VALUE >0 | |
d7225fc2 | 1341 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1342 | WITH-VALUE 3,4,5,6,7,8,9 |
1343 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1344 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1345 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1346 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1347 | } | |
1348 | ||
1349 | { | |
1350 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1351 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1352 | ||
1353 | NAME "Print-Job with US Letter PDF" | |
1354 | OPERATION Print-Job | |
1355 | GROUP operation-attributes-tag | |
1356 | ATTR charset attributes-charset utf-8 | |
1357 | ATTR naturalLanguage attributes-natural-language en | |
1358 | ATTR uri printer-uri $uri | |
1359 | ATTR name requesting-user-name $user | |
1360 | ATTR name job-name "US Letter Test Document" | |
1361 | ATTR boolean ipp-attribute-fidelity false | |
1362 | ATTR name document-name document-letter.pdf | |
1363 | ATTR keyword compression none | |
1364 | ATTR mimeMediaType document-format application/pdf | |
1365 | GROUP job-attributes-tag | |
9b66acc5 | 1366 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1367 | FILE document-letter.pdf |
1368 | ||
1369 | STATUS successful-ok | |
1370 | STATUS server-error-job-canceled | |
1371 | STATUS server-error-busy REPEAT-MATCH | |
1372 | ||
1373 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1374 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1375 | WITH-VALUE >0 | |
d7225fc2 | 1376 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1377 | WITH-VALUE 3,4,5,6,7,8,9 |
1378 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1379 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1380 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1381 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1382 | } | |
1383 | ||
1384 | { | |
1385 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1386 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1387 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1388 | ||
1389 | NAME "Print-Job with US Letter PDF, Duplex" | |
1390 | OPERATION Print-Job | |
1391 | GROUP operation-attributes-tag | |
1392 | ATTR charset attributes-charset utf-8 | |
1393 | ATTR naturalLanguage attributes-natural-language en | |
1394 | ATTR uri printer-uri $uri | |
1395 | ATTR name requesting-user-name $user | |
1396 | ATTR name job-name "US Letter Test Document, Duplex" | |
1397 | ATTR boolean ipp-attribute-fidelity false | |
1398 | ATTR name document-name document-letter.pdf | |
1399 | ATTR keyword compression none | |
1400 | ATTR mimeMediaType document-format application/pdf | |
1401 | GROUP job-attributes-tag | |
9b66acc5 | 1402 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1403 | ATTR keyword sides two-sided-long-edge |
1404 | FILE document-letter.pdf | |
1405 | ||
1406 | STATUS successful-ok | |
1407 | STATUS server-error-job-canceled | |
1408 | STATUS server-error-busy REPEAT-MATCH | |
1409 | ||
1410 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1411 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1412 | WITH-VALUE >0 | |
d7225fc2 | 1413 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1414 | WITH-VALUE 3,4,5,6,7,8,9 |
1415 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1416 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1417 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1418 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1419 | } | |
1420 | ||
1421 | ||
1422 | # Test PostScript output | |
1423 | { | |
1424 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1425 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1426 | ||
1427 | NAME "Print-Job with A4 PostScript" | |
1428 | OPERATION Print-Job | |
1429 | GROUP operation-attributes-tag | |
1430 | ATTR charset attributes-charset utf-8 | |
1431 | ATTR naturalLanguage attributes-natural-language en | |
1432 | ATTR uri printer-uri $uri | |
1433 | ATTR name requesting-user-name $user | |
1434 | ATTR name job-name "A4 Test Document, Duplex" | |
1435 | ATTR boolean ipp-attribute-fidelity false | |
1436 | ATTR name document-name document-a4.ps | |
1437 | ATTR keyword compression none | |
1438 | ATTR mimeMediaType document-format application/postscript | |
1439 | GROUP job-attributes-tag | |
9b66acc5 | 1440 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1441 | FILE document-a4.ps |
1442 | ||
1443 | STATUS successful-ok | |
1444 | STATUS server-error-job-canceled | |
1445 | STATUS server-error-busy REPEAT-MATCH | |
1446 | ||
1447 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1448 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1449 | WITH-VALUE >0 | |
d7225fc2 | 1450 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1451 | WITH-VALUE 3,4,5,6,7,8,9 |
1452 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1453 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1454 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1455 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1456 | } | |
1457 | ||
1458 | { | |
1459 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1460 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1461 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1462 | ||
1463 | NAME "Print-Job with A4 PostScript, Duplex" | |
1464 | OPERATION Print-Job | |
1465 | GROUP operation-attributes-tag | |
1466 | ATTR charset attributes-charset utf-8 | |
1467 | ATTR naturalLanguage attributes-natural-language en | |
1468 | ATTR uri printer-uri $uri | |
1469 | ATTR name requesting-user-name $user | |
1470 | ATTR name job-name "US Letter Test Document" | |
1471 | ATTR boolean ipp-attribute-fidelity false | |
1472 | ATTR name document-name document-a4.ps | |
1473 | ATTR keyword compression none | |
1474 | ATTR mimeMediaType document-format application/postscript | |
1475 | GROUP job-attributes-tag | |
9b66acc5 | 1476 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1477 | ATTR keyword sides two-sided-long-edge |
1478 | FILE document-a4.ps | |
1479 | ||
1480 | STATUS successful-ok | |
1481 | STATUS server-error-job-canceled | |
1482 | STATUS server-error-busy REPEAT-MATCH | |
1483 | ||
1484 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1485 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1486 | WITH-VALUE >0 | |
d7225fc2 | 1487 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1488 | WITH-VALUE 3,4,5,6,7,8,9 |
1489 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1490 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1491 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1492 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1493 | } | |
1494 | ||
1495 | { | |
1496 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1497 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1498 | ||
1499 | NAME "Print-Job with US Letter PostScript" | |
1500 | OPERATION Print-Job | |
1501 | GROUP operation-attributes-tag | |
1502 | ATTR charset attributes-charset utf-8 | |
1503 | ATTR naturalLanguage attributes-natural-language en | |
1504 | ATTR uri printer-uri $uri | |
1505 | ATTR name requesting-user-name $user | |
1506 | ATTR name job-name "US Letter Test Document, Duplex" | |
1507 | ATTR boolean ipp-attribute-fidelity false | |
1508 | ATTR name document-name document-letter.ps | |
1509 | ATTR keyword compression none | |
1510 | ATTR mimeMediaType document-format application/postscript | |
1511 | GROUP job-attributes-tag | |
9b66acc5 | 1512 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1513 | FILE document-letter.ps |
1514 | ||
1515 | STATUS successful-ok | |
1516 | STATUS server-error-job-canceled | |
1517 | STATUS server-error-busy REPEAT-MATCH | |
1518 | ||
1519 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1520 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1521 | WITH-VALUE >0 | |
d7225fc2 | 1522 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1523 | WITH-VALUE 3,4,5,6,7,8,9 |
1524 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1525 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1526 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1527 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1528 | } | |
1529 | ||
1530 | { | |
1531 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1532 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1533 | SKIP-IF-NOT-DEFINED OPTIONAL_DUPLEX | |
1534 | ||
1535 | NAME "Print-Job with US Letter PostScript, Duplex" | |
1536 | OPERATION Print-Job | |
1537 | GROUP operation-attributes-tag | |
1538 | ATTR charset attributes-charset utf-8 | |
1539 | ATTR naturalLanguage attributes-natural-language en | |
1540 | ATTR uri printer-uri $uri | |
1541 | ATTR name requesting-user-name $user | |
1542 | ATTR name job-name "A4 Test Document" | |
1543 | ATTR boolean ipp-attribute-fidelity false | |
1544 | ATTR name document-name document-letter.ps | |
1545 | ATTR keyword compression none | |
1546 | ATTR mimeMediaType document-format application/postscript | |
1547 | GROUP job-attributes-tag | |
9b66acc5 | 1548 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1549 | ATTR keyword sides two-sided-long-edge |
1550 | FILE document-letter.ps | |
1551 | ||
1552 | STATUS successful-ok | |
1553 | STATUS server-error-job-canceled | |
1554 | STATUS server-error-busy REPEAT-MATCH | |
1555 | ||
1556 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1557 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1558 | WITH-VALUE >0 | |
d7225fc2 | 1559 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1560 | WITH-VALUE 3,4,5,6,7,8,9 |
1561 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1562 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1563 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1564 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1565 | } | |
1566 | ||
1567 | ||
1568 | # Test JPEG output | |
1569 | { | |
1570 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1571 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1572 | ||
1573 | NAME "Print-Job with Color JPEG on A4" | |
1574 | OPERATION Print-Job | |
1575 | GROUP operation-attributes-tag | |
1576 | ATTR charset attributes-charset utf-8 | |
1577 | ATTR naturalLanguage attributes-natural-language en | |
1578 | ATTR uri printer-uri $uri | |
1579 | ATTR name requesting-user-name $user | |
1580 | ATTR name job-name "Color JPEG on A4" | |
1581 | ATTR boolean ipp-attribute-fidelity false | |
1582 | ATTR name document-name color.jpg | |
1583 | ATTR keyword compression none | |
1584 | ATTR mimeMediaType document-format image/jpeg | |
1585 | GROUP job-attributes-tag | |
9b66acc5 | 1586 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1587 | FILE color.jpg |
1588 | ||
1589 | STATUS successful-ok | |
1590 | STATUS server-error-job-canceled | |
1591 | STATUS server-error-busy REPEAT-MATCH | |
1592 | ||
1593 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1594 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1595 | WITH-VALUE >0 | |
d7225fc2 | 1596 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1597 | WITH-VALUE 3,4,5,6,7,8,9 |
1598 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1599 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1600 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1601 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1602 | } | |
1603 | ||
1604 | { | |
1605 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1606 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1607 | ||
1608 | NAME "Print-Job with Color JPEG on US Letter" | |
1609 | OPERATION Print-Job | |
1610 | GROUP operation-attributes-tag | |
1611 | ATTR charset attributes-charset utf-8 | |
1612 | ATTR naturalLanguage attributes-natural-language en | |
1613 | ATTR uri printer-uri $uri | |
1614 | ATTR name requesting-user-name $user | |
1615 | ATTR name job-name "Color JPEG on US Letter" | |
1616 | ATTR boolean ipp-attribute-fidelity false | |
1617 | ATTR name document-name color.jpg | |
1618 | ATTR keyword compression none | |
1619 | ATTR mimeMediaType document-format image/jpeg | |
1620 | GROUP job-attributes-tag | |
9b66acc5 | 1621 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1622 | FILE color.jpg |
1623 | ||
1624 | STATUS successful-ok | |
1625 | STATUS server-error-job-canceled | |
1626 | STATUS server-error-busy REPEAT-MATCH | |
1627 | ||
1628 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1629 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1630 | WITH-VALUE >0 | |
d7225fc2 | 1631 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1632 | WITH-VALUE 3,4,5,6,7,8,9 |
1633 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1634 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1635 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1636 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1637 | } | |
1638 | ||
1639 | { | |
1640 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1641 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1642 | ||
1643 | NAME "Print-Job with Color JPEG on 4x6" | |
1644 | OPERATION Print-Job | |
1645 | GROUP operation-attributes-tag | |
1646 | ATTR charset attributes-charset utf-8 | |
1647 | ATTR naturalLanguage attributes-natural-language en | |
1648 | ATTR uri printer-uri $uri | |
1649 | ATTR name requesting-user-name $user | |
1650 | ATTR name job-name "Color JPEG on 4x6" | |
1651 | ATTR boolean ipp-attribute-fidelity false | |
1652 | ATTR name document-name color.jpg | |
1653 | ATTR keyword compression none | |
1654 | ATTR mimeMediaType document-format image/jpeg | |
1655 | GROUP job-attributes-tag | |
9b66acc5 | 1656 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1657 | FILE color.jpg |
1658 | ||
1659 | STATUS successful-ok | |
1660 | STATUS server-error-job-canceled | |
1661 | STATUS server-error-busy REPEAT-MATCH | |
1662 | ||
1663 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1664 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1665 | WITH-VALUE >0 | |
d7225fc2 | 1666 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1667 | WITH-VALUE 3,4,5,6,7,8,9 |
1668 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1669 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1670 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1671 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1672 | } | |
1673 | ||
1674 | { | |
1675 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1676 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1677 | ||
1678 | NAME "Print-Job with Grayscale JPEG on A4" | |
1679 | OPERATION Print-Job | |
1680 | GROUP operation-attributes-tag | |
1681 | ATTR charset attributes-charset utf-8 | |
1682 | ATTR naturalLanguage attributes-natural-language en | |
1683 | ATTR uri printer-uri $uri | |
1684 | ATTR name requesting-user-name $user | |
1685 | ATTR name job-name "Grayscale JPEG on A4" | |
1686 | ATTR boolean ipp-attribute-fidelity false | |
1687 | ATTR name document-name gray.jpg | |
1688 | ATTR keyword compression none | |
1689 | ATTR mimeMediaType document-format image/jpeg | |
1690 | GROUP job-attributes-tag | |
9b66acc5 | 1691 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1692 | FILE gray.jpg |
1693 | ||
1694 | STATUS successful-ok | |
1695 | STATUS server-error-job-canceled | |
1696 | STATUS server-error-busy REPEAT-MATCH | |
1697 | ||
1698 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1699 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1700 | WITH-VALUE >0 | |
d7225fc2 | 1701 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1702 | WITH-VALUE 3,4,5,6,7,8,9 |
1703 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1704 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1705 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1706 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1707 | } | |
1708 | ||
1709 | { | |
1710 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1711 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1712 | ||
1713 | NAME "Print-Job with Grayscale JPEG on US Letter" | |
1714 | OPERATION Print-Job | |
1715 | GROUP operation-attributes-tag | |
1716 | ATTR charset attributes-charset utf-8 | |
1717 | ATTR naturalLanguage attributes-natural-language en | |
1718 | ATTR uri printer-uri $uri | |
1719 | ATTR name requesting-user-name $user | |
1720 | ATTR name job-name "Grayscale JPEG on US Letter" | |
1721 | ATTR boolean ipp-attribute-fidelity false | |
1722 | ATTR name document-name gray.jpg | |
1723 | ATTR keyword compression none | |
1724 | ATTR mimeMediaType document-format image/jpeg | |
1725 | GROUP job-attributes-tag | |
9b66acc5 | 1726 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1727 | FILE gray.jpg |
1728 | ||
1729 | STATUS successful-ok | |
1730 | STATUS server-error-job-canceled | |
1731 | STATUS server-error-busy REPEAT-MATCH | |
1732 | ||
1733 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1734 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1735 | WITH-VALUE >0 | |
d7225fc2 | 1736 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1737 | WITH-VALUE 3,4,5,6,7,8,9 |
1738 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1739 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1740 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1741 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1742 | } | |
1743 | ||
1744 | { | |
1745 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
1746 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
1747 | ||
1748 | NAME "Print-Job with Grayscale JPEG on 4x6" | |
1749 | OPERATION Print-Job | |
1750 | GROUP operation-attributes-tag | |
1751 | ATTR charset attributes-charset utf-8 | |
1752 | ATTR naturalLanguage attributes-natural-language en | |
1753 | ATTR uri printer-uri $uri | |
1754 | ATTR name requesting-user-name $user | |
1755 | ATTR name job-name "Grayscale JPEG on 4x6" | |
1756 | ATTR boolean ipp-attribute-fidelity false | |
1757 | ATTR name document-name gray.jpg | |
1758 | ATTR keyword compression none | |
1759 | ATTR mimeMediaType document-format image/jpeg | |
1760 | GROUP job-attributes-tag | |
9b66acc5 | 1761 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
1762 | FILE gray.jpg |
1763 | ||
1764 | STATUS successful-ok | |
1765 | STATUS server-error-job-canceled | |
1766 | STATUS server-error-busy REPEAT-MATCH | |
1767 | ||
1768 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1769 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1770 | WITH-VALUE >0 | |
d7225fc2 | 1771 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1772 | WITH-VALUE 3,4,5,6,7,8,9 |
1773 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1774 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1775 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1776 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1777 | } | |
1778 | ||
1779 | ||
1780 | # Print-Job with job-sheets | |
1781 | { | |
1782 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1783 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1784 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1785 | ||
1786 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1787 | OPERATION Print-Job | |
1788 | GROUP operation-attributes-tag | |
1789 | ATTR charset attributes-charset utf-8 | |
1790 | ATTR naturalLanguage attributes-natural-language en | |
1791 | ATTR uri printer-uri $uri | |
1792 | ATTR name requesting-user-name $user | |
1793 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1794 | ATTR boolean ipp-attribute-fidelity false | |
1795 | ATTR name document-name document-a4.pdf | |
1796 | ATTR keyword compression none | |
1797 | ATTR mimeMediaType document-format application/pdf | |
1798 | GROUP job-attributes-tag | |
9b66acc5 | 1799 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1800 | ATTR keyword job-sheets standard |
1801 | FILE document-a4.pdf | |
1802 | ||
1803 | STATUS successful-ok | |
1804 | STATUS server-error-job-canceled | |
1805 | STATUS server-error-busy REPEAT-MATCH | |
1806 | ||
1807 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1808 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1809 | WITH-VALUE >0 | |
d7225fc2 | 1810 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1811 | WITH-VALUE 3,4,5,6,7,8,9 |
1812 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1813 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1814 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1815 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1816 | } | |
1817 | ||
1818 | { | |
1819 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1820 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1821 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1822 | ||
1823 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1824 | OPERATION Print-Job | |
1825 | GROUP operation-attributes-tag | |
1826 | ATTR charset attributes-charset utf-8 | |
1827 | ATTR naturalLanguage attributes-natural-language en | |
1828 | ATTR uri printer-uri $uri | |
1829 | ATTR name requesting-user-name $user | |
1830 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1831 | ATTR boolean ipp-attribute-fidelity false | |
1832 | ATTR name document-name document-a4.pdf | |
1833 | ATTR keyword compression none | |
1834 | ATTR mimeMediaType document-format application/pdf | |
1835 | GROUP job-attributes-tag | |
9b66acc5 | 1836 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1837 | ATTR keyword job-sheets standard |
1838 | FILE document-a4.pdf | |
1839 | ||
1840 | STATUS successful-ok | |
1841 | STATUS server-error-job-canceled | |
1842 | STATUS server-error-busy REPEAT-MATCH | |
1843 | ||
1844 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1845 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1846 | WITH-VALUE >0 | |
d7225fc2 | 1847 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1848 | WITH-VALUE 3,4,5,6,7,8,9 |
1849 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1850 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1851 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1852 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1853 | } | |
1854 | ||
1855 | { | |
1856 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1857 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1858 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1859 | ||
1860 | NAME "Print-Job with A4 PDF and Standard Sheet" | |
1861 | OPERATION Print-Job | |
1862 | GROUP operation-attributes-tag | |
1863 | ATTR charset attributes-charset utf-8 | |
1864 | ATTR naturalLanguage attributes-natural-language en | |
1865 | ATTR uri printer-uri $uri | |
1866 | ATTR name requesting-user-name $user | |
1867 | ATTR name job-name "A4 Test Document w/Standard Sheet" | |
1868 | ATTR boolean ipp-attribute-fidelity false | |
1869 | ATTR name document-name document-a4.ps | |
1870 | ATTR keyword compression none | |
1871 | ATTR mimeMediaType document-format application/postscript | |
1872 | GROUP job-attributes-tag | |
9b66acc5 | 1873 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1874 | ATTR keyword job-sheets standard |
1875 | FILE document-a4.ps | |
1876 | ||
1877 | STATUS successful-ok | |
1878 | STATUS server-error-job-canceled | |
1879 | STATUS server-error-busy REPEAT-MATCH | |
1880 | ||
1881 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1882 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1883 | WITH-VALUE >0 | |
d7225fc2 | 1884 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1885 | WITH-VALUE 3,4,5,6,7,8,9 |
1886 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1887 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1888 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1889 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1890 | } | |
1891 | ||
1892 | { | |
1893 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
1894 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1895 | SKIP-IF-NOT-DEFINED OPTIONAL_STANDARD_SHEET | |
1896 | ||
1897 | NAME "Print-Job with US Letter PDF and Standard Sheet" | |
1898 | OPERATION Print-Job | |
1899 | GROUP operation-attributes-tag | |
1900 | ATTR charset attributes-charset utf-8 | |
1901 | ATTR naturalLanguage attributes-natural-language en | |
1902 | ATTR uri printer-uri $uri | |
1903 | ATTR name requesting-user-name $user | |
1904 | ATTR name job-name "US Letter Test Document w/Standard Sheet" | |
1905 | ATTR boolean ipp-attribute-fidelity false | |
1906 | ATTR name document-name document-a4.ps | |
1907 | ATTR keyword compression none | |
1908 | ATTR mimeMediaType document-format application/postscript | |
1909 | GROUP job-attributes-tag | |
9b66acc5 | 1910 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1911 | ATTR keyword job-sheets standard |
1912 | FILE document-a4.ps | |
1913 | ||
1914 | STATUS successful-ok | |
1915 | STATUS server-error-job-canceled | |
1916 | STATUS server-error-busy REPEAT-MATCH | |
1917 | ||
1918 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1919 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1920 | WITH-VALUE >0 | |
d7225fc2 | 1921 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1922 | WITH-VALUE 3,4,5,6,7,8,9 |
1923 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1924 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1925 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1926 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1927 | } | |
1928 | ||
1929 | ||
1930 | # Test number-up output | |
1931 | { | |
1932 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1933 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
1934 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1935 | ||
1936 | NAME "Print-Job with A4 PDF, 2-Up" | |
1937 | OPERATION Print-Job | |
1938 | GROUP operation-attributes-tag | |
1939 | ATTR charset attributes-charset utf-8 | |
1940 | ATTR naturalLanguage attributes-natural-language en | |
1941 | ATTR uri printer-uri $uri | |
1942 | ATTR name requesting-user-name $user | |
dcb445bc | 1943 | ATTR name job-name "A4 Test Document; 2-Up" |
83e08001 MS |
1944 | ATTR boolean ipp-attribute-fidelity false |
1945 | ATTR name document-name document-a4.pdf | |
1946 | ATTR keyword compression none | |
1947 | ATTR mimeMediaType document-format application/pdf | |
1948 | GROUP job-attributes-tag | |
9b66acc5 | 1949 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
1950 | ATTR integer number-up 2 |
1951 | FILE document-a4.pdf | |
1952 | ||
1953 | STATUS successful-ok | |
1954 | STATUS server-error-job-canceled | |
1955 | STATUS server-error-busy REPEAT-MATCH | |
1956 | ||
1957 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1958 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1959 | WITH-VALUE >0 | |
d7225fc2 | 1960 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1961 | WITH-VALUE 3,4,5,6,7,8,9 |
1962 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
1963 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
1964 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
1965 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
1966 | } | |
1967 | ||
1968 | { | |
1969 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
1970 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
1971 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
1972 | ||
1973 | NAME "Print-Job with US Letter PDF, 2-Up" | |
1974 | OPERATION Print-Job | |
1975 | GROUP operation-attributes-tag | |
1976 | ATTR charset attributes-charset utf-8 | |
1977 | ATTR naturalLanguage attributes-natural-language en | |
1978 | ATTR uri printer-uri $uri | |
1979 | ATTR name requesting-user-name $user | |
dcb445bc | 1980 | ATTR name job-name "US Letter Test Document; 2-Up" |
83e08001 MS |
1981 | ATTR boolean ipp-attribute-fidelity false |
1982 | ATTR name document-name document-letter.pdf | |
1983 | ATTR keyword compression none | |
1984 | ATTR mimeMediaType document-format application/pdf | |
1985 | GROUP job-attributes-tag | |
9b66acc5 | 1986 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
1987 | ATTR integer number-up 2 |
1988 | FILE document-letter.pdf | |
1989 | ||
1990 | STATUS successful-ok | |
1991 | STATUS server-error-job-canceled | |
1992 | STATUS server-error-busy REPEAT-MATCH | |
1993 | ||
1994 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
1995 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
1996 | WITH-VALUE >0 | |
d7225fc2 | 1997 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
1998 | WITH-VALUE 3,4,5,6,7,8,9 |
1999 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2000 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2001 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2002 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2003 | } | |
2004 | ||
2005 | { | |
2006 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
2007 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
2008 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
2009 | ||
2010 | NAME "Print-Job with A4 PDF, 2-Up" | |
2011 | OPERATION Print-Job | |
2012 | GROUP operation-attributes-tag | |
2013 | ATTR charset attributes-charset utf-8 | |
2014 | ATTR naturalLanguage attributes-natural-language en | |
2015 | ATTR uri printer-uri $uri | |
2016 | ATTR name requesting-user-name $user | |
dcb445bc | 2017 | ATTR name job-name "A4 Test Document; 2-Up" |
83e08001 MS |
2018 | ATTR boolean ipp-attribute-fidelity false |
2019 | ATTR name document-name document-a4.ps | |
2020 | ATTR keyword compression none | |
2021 | ATTR mimeMediaType document-format application/postscript | |
2022 | GROUP job-attributes-tag | |
9b66acc5 | 2023 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
2024 | ATTR integer number-up 2 |
2025 | FILE document-a4.ps | |
2026 | ||
2027 | STATUS successful-ok | |
2028 | STATUS server-error-job-canceled | |
2029 | STATUS server-error-busy REPEAT-MATCH | |
2030 | ||
2031 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2032 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2033 | WITH-VALUE >0 | |
d7225fc2 | 2034 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2035 | WITH-VALUE 3,4,5,6,7,8,9 |
2036 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2037 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2038 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2039 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2040 | } | |
2041 | ||
2042 | { | |
2043 | SKIP-IF-NOT-DEFINED OPTIONAL_POSTSCRIPT | |
2044 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2045 | SKIP-IF-NOT-DEFINED OPTIONAL_2UP | |
2046 | ||
2047 | NAME "Print-Job with US Letter PDF, 2-Up" | |
2048 | OPERATION Print-Job | |
2049 | GROUP operation-attributes-tag | |
2050 | ATTR charset attributes-charset utf-8 | |
2051 | ATTR naturalLanguage attributes-natural-language en | |
2052 | ATTR uri printer-uri $uri | |
2053 | ATTR name requesting-user-name $user | |
dcb445bc | 2054 | ATTR name job-name "US Letter Test Document; 2-Up" |
83e08001 MS |
2055 | ATTR boolean ipp-attribute-fidelity false |
2056 | ATTR name document-name document-letter.ps | |
2057 | ATTR keyword compression none | |
2058 | ATTR mimeMediaType document-format application/postscript | |
2059 | GROUP job-attributes-tag | |
9b66acc5 | 2060 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2061 | ATTR integer number-up 2 |
2062 | FILE document-letter.ps | |
2063 | ||
2064 | STATUS successful-ok | |
2065 | STATUS server-error-job-canceled | |
2066 | STATUS server-error-busy REPEAT-MATCH | |
2067 | ||
2068 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2069 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2070 | WITH-VALUE >0 | |
d7225fc2 | 2071 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2072 | WITH-VALUE 3,4,5,6,7,8,9 |
2073 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2074 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2075 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2076 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2077 | } | |
2078 | ||
2079 | ||
2080 | # Test output with print-quality... | |
2081 | { | |
2082 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2083 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2084 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2085 | ||
2086 | NAME "Print-Job with JPEG on 4x6, Draft Quality" | |
2087 | OPERATION Print-Job | |
2088 | GROUP operation-attributes-tag | |
2089 | ATTR charset attributes-charset utf-8 | |
2090 | ATTR naturalLanguage attributes-natural-language en | |
2091 | ATTR uri printer-uri $uri | |
2092 | ATTR name requesting-user-name $user | |
dcb445bc | 2093 | ATTR name job-name "4x6 Color JPEG; Draft Quality" |
83e08001 MS |
2094 | ATTR boolean ipp-attribute-fidelity false |
2095 | ATTR name document-name color.jpg | |
2096 | ATTR keyword compression none | |
2097 | ATTR mimeMediaType document-format image/jpeg | |
2098 | GROUP job-attributes-tag | |
9b66acc5 | 2099 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2100 | ATTR enum print-quality 3 |
2101 | FILE color.jpeg | |
2102 | ||
2103 | STATUS successful-ok | |
2104 | STATUS server-error-job-canceled | |
2105 | STATUS server-error-busy REPEAT-MATCH | |
2106 | ||
2107 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2108 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2109 | WITH-VALUE >0 | |
d7225fc2 | 2110 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2111 | WITH-VALUE 3,4,5,6,7,8,9 |
2112 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2113 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2114 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2115 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2116 | } | |
2117 | ||
2118 | { | |
2119 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2120 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2121 | SKIP-IF-NOT-DEFINED OPTIONAL_NORMAL_QUALITY | |
2122 | ||
2123 | NAME "Print-Job with JPEG on 4x6, Normal Quality" | |
2124 | OPERATION Print-Job | |
2125 | GROUP operation-attributes-tag | |
2126 | ATTR charset attributes-charset utf-8 | |
2127 | ATTR naturalLanguage attributes-natural-language en | |
2128 | ATTR uri printer-uri $uri | |
2129 | ATTR name requesting-user-name $user | |
dcb445bc | 2130 | ATTR name job-name "4x6 Color JPEG; Normal Quality" |
83e08001 MS |
2131 | ATTR boolean ipp-attribute-fidelity false |
2132 | ATTR name document-name color.jpg | |
2133 | ATTR keyword compression none | |
2134 | ATTR mimeMediaType document-format image/jpeg | |
2135 | GROUP job-attributes-tag | |
9b66acc5 | 2136 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2137 | ATTR enum print-quality 4 |
2138 | FILE color.jpeg | |
2139 | ||
2140 | STATUS successful-ok | |
2141 | STATUS server-error-job-canceled | |
2142 | STATUS server-error-busy REPEAT-MATCH | |
2143 | ||
2144 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2145 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2146 | WITH-VALUE >0 | |
d7225fc2 | 2147 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2148 | WITH-VALUE 3,4,5,6,7,8,9 |
2149 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2150 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2151 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2152 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2153 | } | |
2154 | ||
2155 | { | |
2156 | SKIP-IF-NOT-DEFINED OPTIONAL_JPEG | |
2157 | SKIP-IF-NOT-DEFINED OPTIONAL_4X6_MEDIA | |
2158 | SKIP-IF-NOT-DEFINED OPTIONAL_HIGH_QUALITY | |
2159 | ||
2160 | NAME "Print-Job with JPEG on 4x6, High Quality" | |
2161 | OPERATION Print-Job | |
2162 | GROUP operation-attributes-tag | |
2163 | ATTR charset attributes-charset utf-8 | |
2164 | ATTR naturalLanguage attributes-natural-language en | |
2165 | ATTR uri printer-uri $uri | |
2166 | ATTR name requesting-user-name $user | |
dcb445bc | 2167 | ATTR name job-name "4x6 Color JPEG; High Quality" |
83e08001 MS |
2168 | ATTR boolean ipp-attribute-fidelity false |
2169 | ATTR name document-name color.jpg | |
2170 | ATTR keyword compression none | |
2171 | ATTR mimeMediaType document-format image/jpeg | |
2172 | GROUP job-attributes-tag | |
9b66acc5 | 2173 | ATTR keyword media $OPTIONAL_4X6_MEDIA |
83e08001 MS |
2174 | ATTR enum print-quality 5 |
2175 | FILE color.jpeg | |
2176 | ||
2177 | STATUS successful-ok | |
2178 | STATUS server-error-job-canceled | |
2179 | STATUS server-error-busy REPEAT-MATCH | |
2180 | ||
2181 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2182 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2183 | WITH-VALUE >0 | |
d7225fc2 | 2184 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2185 | WITH-VALUE 3,4,5,6,7,8,9 |
2186 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2187 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2188 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2189 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2190 | } | |
2191 | ||
2192 | { | |
2193 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2194 | SKIP-IF-NOT-DEFINED OPTIONAL_A4_MEDIA | |
2195 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2196 | ||
2197 | NAME "Print-Job with A4 PDF, Draft Quality" | |
2198 | OPERATION Print-Job | |
2199 | GROUP operation-attributes-tag | |
2200 | ATTR charset attributes-charset utf-8 | |
2201 | ATTR naturalLanguage attributes-natural-language en | |
2202 | ATTR uri printer-uri $uri | |
2203 | ATTR name requesting-user-name $user | |
dcb445bc | 2204 | ATTR name job-name "A4 Test Document; 2-Up" |
83e08001 MS |
2205 | ATTR boolean ipp-attribute-fidelity false |
2206 | ATTR name document-name document-a4.pdf | |
2207 | ATTR keyword compression none | |
2208 | ATTR mimeMediaType document-format application/pdf | |
2209 | GROUP job-attributes-tag | |
9b66acc5 | 2210 | ATTR keyword media $OPTIONAL_A4_MEDIA |
83e08001 MS |
2211 | ATTR enum print-quality 3 |
2212 | FILE document-a4.pdf | |
2213 | ||
2214 | STATUS successful-ok | |
2215 | STATUS server-error-job-canceled | |
2216 | STATUS server-error-busy REPEAT-MATCH | |
2217 | ||
2218 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2219 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2220 | WITH-VALUE >0 | |
d7225fc2 | 2221 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2222 | WITH-VALUE 3,4,5,6,7,8,9 |
2223 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2224 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2225 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2226 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2227 | } | |
2228 | ||
2229 | { | |
2230 | SKIP-IF-NOT-DEFINED OPTIONAL_PDF | |
2231 | SKIP-IF-NOT-DEFINED OPTIONAL_LETTER_MEDIA | |
2232 | SKIP-IF-NOT-DEFINED OPTIONAL_DRAFT_QUALITY | |
2233 | ||
2234 | NAME "Print-Job with US Letter PDF, Draft Quality" | |
2235 | OPERATION Print-Job | |
2236 | GROUP operation-attributes-tag | |
2237 | ATTR charset attributes-charset utf-8 | |
2238 | ATTR naturalLanguage attributes-natural-language en | |
2239 | ATTR uri printer-uri $uri | |
2240 | ATTR name requesting-user-name $user | |
dcb445bc | 2241 | ATTR name job-name "US Letter Test Document; 2-Up" |
83e08001 MS |
2242 | ATTR boolean ipp-attribute-fidelity false |
2243 | ATTR name document-name document-letter.pdf | |
2244 | ATTR keyword compression none | |
2245 | ATTR mimeMediaType document-format application/pdf | |
2246 | GROUP job-attributes-tag | |
9b66acc5 | 2247 | ATTR keyword media $OPTIONAL_LETTER_MEDIA |
83e08001 MS |
2248 | ATTR enum print-quality 3 |
2249 | FILE document-letter.pdf | |
2250 | ||
2251 | STATUS successful-ok | |
2252 | STATUS server-error-job-canceled | |
2253 | STATUS server-error-busy REPEAT-MATCH | |
2254 | ||
2255 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2256 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2257 | WITH-VALUE >0 | |
d7225fc2 | 2258 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
83e08001 MS |
2259 | WITH-VALUE 3,4,5,6,7,8,9 |
2260 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2261 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2262 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2263 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2264 | } | |
2265 | ||
2266 | ||
9b66acc5 MS |
2267 | # Test hold/release in the context of Print-Job w/job-hold-until + Release-Job |
2268 | { | |
2269 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2270 | ||
2271 | NAME "Print-Job with job-hold-until" | |
2272 | OPERATION Print-Job | |
2273 | GROUP operation-attributes-tag | |
2274 | ATTR charset attributes-charset utf-8 | |
2275 | ATTR naturalLanguage attributes-natural-language en | |
2276 | ATTR uri printer-uri $uri | |
2277 | ATTR name requesting-user-name $user | |
2278 | ATTR name job-name "Test Document w/Hold" | |
2279 | ATTR name document-name $filename | |
2280 | ATTR keyword compression none | |
2281 | ATTR mimeMediaType document-format $filetype | |
2282 | GROUP job-attributes-tag | |
2283 | ATTR keyword job-hold-until indefinite | |
2284 | FILE $filename | |
2285 | ||
2286 | STATUS successful-ok | |
2287 | STATUS server-error-job-canceled | |
2288 | STATUS server-error-busy REPEAT-MATCH | |
2289 | ||
2290 | EXPECT job-uri OF-TYPE uri COUNT 1 IN-GROUP job-attributes-tag WITH-VALUE "$IPP_URI_SCHEME" | |
2291 | EXPECT job-id OF-TYPE integer COUNT 1 IN-GROUP job-attributes-tag | |
2292 | WITH-VALUE >0 | |
d7225fc2 | 2293 | EXPECT job-state OF-TYPE unknown|enum COUNT 1 IN-GROUP job-attributes-tag |
9b66acc5 MS |
2294 | WITH-VALUE 3,4,5,6,7,8,9 |
2295 | EXPECT job-state-reasons OF-TYPE keyword IN-GROUP job-attributes-tag | |
2296 | EXPECT ?job-state-message OF-TYPE text IN-GROUP job-attributes-tag | |
2297 | EXPECT ?number-of-intervening-jobs OF-TYPE integer | |
2298 | IN-GROUP job-attributes-tag WITH-VALUE >-1 | |
2299 | } | |
2300 | ||
2301 | { | |
2302 | SKIP-IF-NOT-DEFINED OPTIONAL_HOLD_JOB | |
2303 | ||
2304 | NAME "Release-Job" | |
2305 | OPERATION Release-Job | |
2306 | GROUP operation-attributes-tag | |
2307 | ATTR charset attributes-charset utf-8 | |
2308 | ATTR naturalLanguage attributes-natural-language en | |
2309 | ATTR uri printer-uri $uri | |
2310 | ATTR integer job-id $job-id | |
2311 | ATTR name requesting-user-name $user | |
2312 | ||
2313 | STATUS successful-ok | |
2314 | STATUS client-error-not-possible | |
2315 | } | |
2316 | ||
2317 | ||
f8b3a85b MS |
2318 | # |
2319 | # End of "$Id$". | |
2320 | # |