1# 2# Mini test suite for Get-Printer-Attributes conformance 3# 4# Verifies IPP conformance for the requested-attributes operation attribute. 5# 6# Usage: 7# 8# ipptool -tI printer-uri get-printer-attributes-suite.test 9# 10 11# Always use IPP/2.0 for this set of tests... 12VERSION 2.0 13 14{ 15 NAME "Get-Printer-Attributes (no requested-attributes)" 16 17 OPERATION Get-Printer-Attributes 18 19 GROUP operation-attributes-tag 20 ATTR charset attributes-charset utf-8 21 ATTR language attributes-natural-language en 22 ATTR uri printer-uri $uri 23 24 STATUS successful-ok 25 26 # 'media-col-database' attribute should never be returned unless 27 # explicitly requested... 28 EXPECT !media-col-database 29 30 # 'printer-description' attributes 31 EXPECT charset-configured OF-TYPE charset COUNT 1 IN-GROUP printer-attributes-tag 32 EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag 33 EXPECT ?color-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 34 EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 35 EXPECT document-format-default OF-TYPE mimeMediaType COUNT 1 IN-GROUP printer-attributes-tag 36 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag 37 EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag 38 EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 39 EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger COUNT 1 IN-GROUP printer-attributes-tag 40 EXPECT ?multiple-document-jobs-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 41 EXPECT ?multiple-operation-time-out OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 42 EXPECT natural-language-configured OF-TYPE naturalLanguage COUNT 1 IN-GROUP printer-attributes-tag 43 EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag 44 EXPECT pdl-override-supported OF-TYPE keyword COUNT 1 IN-GROUP printer-attributes-tag 45 EXPECT ?printer-info OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 46 EXPECT ?printer-location OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 47 EXPECT ?printer-make-and-model OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 48 EXPECT printer-name OF-TYPE name COUNT 1 IN-GROUP printer-attributes-tag 49 EXPECT ?pages-per-minute-color OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 50 EXPECT ?pages-per-minute OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 51 EXPECT ?printer-current-time OF-TYPE dateTime|unknown COUNT 1 IN-GROUP printer-attributes-tag 52 EXPECT printer-is-accepting-jobs OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 53 EXPECT ?printer-more-info OF-TYPE uri COUNT 1 IN-GROUP printer-attributes-tag 54 EXPECT printer-state OF-TYPE enum COUNT 1 IN-GROUP printer-attributes-tag 55 EXPECT ?printer-state-message OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 56 EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag 57 EXPECT printer-up-time OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 58 EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag 59 EXPECT queued-job-count OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 60 EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 61 EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 62 63 # 'job-template' attributes 64 EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 65 EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag 66 EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag 67 EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 68 EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 69 EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold 70 EXPECT job-hold-until-default IF-DEFINED OPTIONAL_HOLD_JOB 71 EXPECT job-hold-until-supported IF-DEFINED OPTIONAL_HOLD_JOB 72 EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 73 EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 74 EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag 75 EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none 76 EXPECT ?media-default OF-TYPE no-value|keyword|name IN-GROUP printer-attributes-tag COUNT 1 77 EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag 78 EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag 79 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)$$/" 80 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)$$/" 81 EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 82 EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 83 EXPECT ?number-up-supported WITH-VALUE 1 84 EXPECT ?orientation-requested-default OF-TYPE no-value|enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 85 EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 86 EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag 87 EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 88 EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 89 EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 90 EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag 91 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)$$/" 92 EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" 93} 94 95{ 96 NAME "Get-Printer-Attributes (requested-attributes='all')" 97 98 OPERATION Get-Printer-Attributes 99 100 GROUP operation-attributes-tag 101 ATTR charset attributes-charset utf-8 102 ATTR language attributes-natural-language en 103 ATTR uri printer-uri $uri 104 ATTR keyword requested-attributes 'all' 105 106 STATUS successful-ok 107 108 # 'media-col-database' attribute should never be returned unless 109 # explicitly requested... 110 EXPECT !media-col-database 111 112 # 'printer-description' attributes 113 EXPECT charset-configured OF-TYPE charset COUNT 1 IN-GROUP printer-attributes-tag 114 EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag 115 EXPECT ?color-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 116 EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 117 EXPECT document-format-default OF-TYPE mimeMediaType COUNT 1 IN-GROUP printer-attributes-tag 118 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag 119 EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag 120 EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 121 EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger COUNT 1 IN-GROUP printer-attributes-tag 122 EXPECT ?multiple-document-jobs-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 123 EXPECT ?multiple-operation-time-out OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 124 EXPECT natural-language-configured OF-TYPE naturalLanguage COUNT 1 IN-GROUP printer-attributes-tag 125 EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag 126 EXPECT pdl-override-supported OF-TYPE keyword COUNT 1 IN-GROUP printer-attributes-tag 127 EXPECT ?printer-info OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 128 EXPECT ?printer-location OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 129 EXPECT ?printer-make-and-model OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 130 EXPECT printer-name OF-TYPE name COUNT 1 IN-GROUP printer-attributes-tag 131 EXPECT ?pages-per-minute-color OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 132 EXPECT ?pages-per-minute OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 133 EXPECT ?printer-current-time OF-TYPE dateTime|unknown COUNT 1 IN-GROUP printer-attributes-tag 134 EXPECT printer-is-accepting-jobs OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 135 EXPECT ?printer-more-info OF-TYPE uri COUNT 1 IN-GROUP printer-attributes-tag 136 EXPECT printer-state OF-TYPE enum COUNT 1 IN-GROUP printer-attributes-tag 137 EXPECT ?printer-state-message OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 138 EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag 139 EXPECT printer-up-time OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 140 EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag 141 EXPECT queued-job-count OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 142 EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 143 EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 144 145 # 'job-template' attributes 146 EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 147 EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag 148 EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag 149 EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 150 EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 151 EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold 152 EXPECT job-hold-until-default IF-DEFINED OPTIONAL_HOLD_JOB 153 EXPECT job-hold-until-supported IF-DEFINED OPTIONAL_HOLD_JOB 154 EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 155 EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 156 EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag 157 EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none 158 EXPECT ?media-default OF-TYPE no-value|keyword|name IN-GROUP printer-attributes-tag COUNT 1 159 EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag 160 EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag 161 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)$$/" 162 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)$$/" 163 EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 164 EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 165 EXPECT ?number-up-supported WITH-VALUE 1 166 EXPECT ?orientation-requested-default OF-TYPE no-value|enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 167 EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 168 EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag 169 EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 170 EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 171 EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 172 EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag 173 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)$$/" 174 EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" 175} 176 177{ 178 NAME "Get-Printer-Attributes (requested-attributes='all','media-col-database')" 179 180 OPERATION Get-Printer-Attributes 181 182 GROUP operation-attributes-tag 183 ATTR charset attributes-charset utf-8 184 ATTR language attributes-natural-language en 185 ATTR uri printer-uri $uri 186 ATTR keyword requested-attributes all,media-col-database 187 188 STATUS successful-ok 189 190 # 'media-col-database' attribute should never be returned unless 191 # explicitly requested... 192 EXPECT media-col-database OF-TYPE collection IN-GROUP printer-attributes-tag 193 194 # 'printer-description' attributes 195 EXPECT charset-configured OF-TYPE charset COUNT 1 IN-GROUP printer-attributes-tag 196 EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag 197 EXPECT ?color-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 198 EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 199 EXPECT document-format-default OF-TYPE mimeMediaType COUNT 1 IN-GROUP printer-attributes-tag 200 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag 201 EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag 202 EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 203 EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger COUNT 1 IN-GROUP printer-attributes-tag 204 EXPECT ?multiple-document-jobs-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 205 EXPECT ?multiple-operation-time-out OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 206 EXPECT natural-language-configured OF-TYPE naturalLanguage COUNT 1 IN-GROUP printer-attributes-tag 207 EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag 208 EXPECT pdl-override-supported OF-TYPE keyword COUNT 1 IN-GROUP printer-attributes-tag 209 EXPECT ?printer-info OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 210 EXPECT ?printer-location OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 211 EXPECT ?printer-make-and-model OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 212 EXPECT printer-name OF-TYPE name COUNT 1 IN-GROUP printer-attributes-tag 213 EXPECT ?pages-per-minute-color OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 214 EXPECT ?pages-per-minute OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 215 EXPECT ?printer-current-time OF-TYPE dateTime|unknown COUNT 1 IN-GROUP printer-attributes-tag 216 EXPECT printer-is-accepting-jobs OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 217 EXPECT ?printer-more-info OF-TYPE uri COUNT 1 IN-GROUP printer-attributes-tag 218 EXPECT printer-state OF-TYPE enum COUNT 1 IN-GROUP printer-attributes-tag 219 EXPECT ?printer-state-message OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 220 EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag 221 EXPECT printer-up-time OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 222 EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag 223 EXPECT queued-job-count OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 224 EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 225 EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 226 227 # 'job-template' attributes 228 EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 229 EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag 230 EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag 231 EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 232 EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 233 EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold 234 EXPECT job-hold-until-default IF-DEFINED OPTIONAL_HOLD_JOB 235 EXPECT job-hold-until-supported IF-DEFINED OPTIONAL_HOLD_JOB 236 EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 237 EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 238 EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag 239 EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none 240 EXPECT ?media-default OF-TYPE no-value|keyword|name IN-GROUP printer-attributes-tag COUNT 1 241 EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag 242 EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag 243 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)$$/" 244 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)$$/" 245 EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 246 EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 247 EXPECT ?number-up-supported WITH-VALUE 1 248 EXPECT ?orientation-requested-default OF-TYPE no-value|enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 249 EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 250 EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag 251 EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 252 EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 253 EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 254 EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag 255 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)$$/" 256 EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" 257} 258 259{ 260 NAME "Get-Printer-Attributes (requested-attributes='none')" 261 262 OPERATION Get-Printer-Attributes 263 264 GROUP operation-attributes-tag 265 ATTR charset attributes-charset utf-8 266 ATTR language attributes-natural-language en 267 ATTR uri printer-uri $uri 268 ATTR keyword requested-attributes 'none' 269 270 STATUS successful-ok 271 272 # 'media-col-database' attribute should never be returned unless 273 # explicitly requested... 274 EXPECT !media-col-database 275 276 # 'printer-description' attributes 277 EXPECT !charset-configured 278 EXPECT !charset-supported 279 EXPECT !color-supported 280 EXPECT !compression-supported 281 EXPECT !document-format-default 282 EXPECT !document-format-supported 283 EXPECT !generated-natural-language-supported 284 EXPECT !ipp-versions-supported 285 EXPECT !job-impressions-supported 286 EXPECT !multiple-document-jobs-supported 287 EXPECT !multiple-operation-time-out 288 EXPECT !natural-language-configured 289 EXPECT !operations-supported 290 EXPECT !pdl-override-supported 291 EXPECT !printer-info 292 EXPECT !printer-location 293 EXPECT !printer-make-and-model 294 EXPECT !printer-name 295 EXPECT !pages-per-minute-color 296 EXPECT !pages-per-minute 297 EXPECT !printer-current-time 298 EXPECT !printer-is-accepting-jobs 299 EXPECT !printer-more-info 300 EXPECT !printer-state 301 EXPECT !printer-state-message 302 EXPECT !printer-state-reasons 303 EXPECT !printer-up-time 304 EXPECT !printer-uri-supported 305 EXPECT !queued-job-count 306 EXPECT !uri-authentication-supported 307 EXPECT !uri-security-supported 308 309 # 'job-template' attributes 310 EXPECT !copies-default 311 EXPECT !copies-supported 312 EXPECT !finishings-default 313 EXPECT !finishings-supported 314 EXPECT !job-hold-until-default 315 EXPECT !job-hold-until-supported 316 EXPECT !job-hold-until-default 317 EXPECT !job-hold-until-supported 318 EXPECT !job-priority-default 319 EXPECT !job-priority-supported 320 EXPECT !job-sheets-default 321 EXPECT !job-sheets-supported 322 EXPECT !media-default 323 EXPECT !media-ready 324 EXPECT !media-supported 325 EXPECT !multiple-document-handling-default 326 EXPECT !multiple-document-handling-supported 327 EXPECT !number-up-default 328 EXPECT !number-up-supported 329 EXPECT !number-up-supported 330 EXPECT !orientation-requested-default 331 EXPECT !orientation-requested-supported 332 EXPECT !pages-ranges-supported 333 EXPECT !print-quality-default 334 EXPECT !print-quality-supported 335 EXPECT !printer-resolution-default 336 EXPECT !printer-resolution-supported 337 EXPECT !sides-default 338 EXPECT !sides-supported 339} 340 341{ 342 NAME "Get-Printer-Attributes (requested-attributes='media-col-database')" 343 344 OPERATION Get-Printer-Attributes 345 346 GROUP operation-attributes-tag 347 ATTR charset attributes-charset utf-8 348 ATTR language attributes-natural-language en 349 ATTR uri printer-uri $uri 350 ATTR keyword requested-attributes 'all' 351 352 STATUS successful-ok 353 354 # 'media-col-database' attribute should never be returned unless 355 # explicitly requested... 356 EXPECT media-col-database OF-TYPE collection IN-GROUP printer-attributes-tag 357 358 # 'printer-description' attributes 359 EXPECT !charset-configured 360 EXPECT !charset-supported 361 EXPECT !color-supported 362 EXPECT !compression-supported 363 EXPECT !document-format-default 364 EXPECT !document-format-supported 365 EXPECT !generated-natural-language-supported 366 EXPECT !ipp-versions-supported 367 EXPECT !job-impressions-supported 368 EXPECT !multiple-document-jobs-supported 369 EXPECT !multiple-operation-time-out 370 EXPECT !natural-language-configured 371 EXPECT !operations-supported 372 EXPECT !pdl-override-supported 373 EXPECT !printer-info 374 EXPECT !printer-location 375 EXPECT !printer-make-and-model 376 EXPECT !printer-name 377 EXPECT !pages-per-minute-color 378 EXPECT !pages-per-minute 379 EXPECT !printer-current-time 380 EXPECT !printer-is-accepting-jobs 381 EXPECT !printer-more-info 382 EXPECT !printer-state 383 EXPECT !printer-state-message 384 EXPECT !printer-state-reasons 385 EXPECT !printer-up-time 386 EXPECT !printer-uri-supported 387 EXPECT !queued-job-count 388 EXPECT !uri-authentication-supported 389 EXPECT !uri-security-supported 390 391 # 'job-template' attributes 392 EXPECT !copies-default 393 EXPECT !copies-supported 394 EXPECT !finishings-default 395 EXPECT !finishings-supported 396 EXPECT !job-hold-until-default 397 EXPECT !job-hold-until-supported 398 EXPECT !job-hold-until-default 399 EXPECT !job-hold-until-supported 400 EXPECT !job-priority-default 401 EXPECT !job-priority-supported 402 EXPECT !job-sheets-default 403 EXPECT !job-sheets-supported 404 EXPECT !media-default 405 EXPECT !media-ready 406 EXPECT !media-supported 407 EXPECT !multiple-document-handling-default 408 EXPECT !multiple-document-handling-supported 409 EXPECT !number-up-default 410 EXPECT !number-up-supported 411 EXPECT !number-up-supported 412 EXPECT !orientation-requested-default 413 EXPECT !orientation-requested-supported 414 EXPECT !pages-ranges-supported 415 EXPECT !print-quality-default 416 EXPECT !print-quality-supported 417 EXPECT !printer-resolution-default 418 EXPECT !printer-resolution-supported 419 EXPECT !sides-default 420 EXPECT !sides-supported 421} 422 423{ 424 NAME "Get-Printer-Attributes (requested-attributes='printer-description')" 425 426 OPERATION Get-Printer-Attributes 427 428 GROUP operation-attributes-tag 429 ATTR charset attributes-charset utf-8 430 ATTR language attributes-natural-language en 431 ATTR uri printer-uri $uri 432 ATTR keyword requested-attributes 'printer-description' 433 434 STATUS successful-ok 435 436 # 'media-col-database' attribute should never be returned unless 437 # explicitly requested... 438 EXPECT !media-col-database 439 440 # 'printer-description' attributes 441 EXPECT charset-configured OF-TYPE charset COUNT 1 IN-GROUP printer-attributes-tag 442 EXPECT charset-supported OF-TYPE charset IN-GROUP printer-attributes-tag 443 EXPECT ?color-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 444 EXPECT compression-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 445 EXPECT document-format-default OF-TYPE mimeMediaType COUNT 1 IN-GROUP printer-attributes-tag 446 EXPECT document-format-supported OF-TYPE mimeMediaType IN-GROUP printer-attributes-tag 447 EXPECT generated-natural-language-supported OF-TYPE naturalLanguage IN-GROUP printer-attributes-tag 448 EXPECT ipp-versions-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 449 EXPECT ?job-impressions-supported OF-TYPE rangeOfInteger COUNT 1 IN-GROUP printer-attributes-tag 450 EXPECT ?multiple-document-jobs-supported OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 451 EXPECT ?multiple-operation-time-out OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 452 EXPECT natural-language-configured OF-TYPE naturalLanguage COUNT 1 IN-GROUP printer-attributes-tag 453 EXPECT operations-supported OF-TYPE enum IN-GROUP printer-attributes-tag 454 EXPECT pdl-override-supported OF-TYPE keyword COUNT 1 IN-GROUP printer-attributes-tag 455 EXPECT ?printer-info OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 456 EXPECT ?printer-location OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 457 EXPECT ?printer-make-and-model OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 458 EXPECT printer-name OF-TYPE name COUNT 1 IN-GROUP printer-attributes-tag 459 EXPECT ?pages-per-minute-color OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 460 EXPECT ?pages-per-minute OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 461 EXPECT ?printer-current-time OF-TYPE dateTime|unknown COUNT 1 IN-GROUP printer-attributes-tag 462 EXPECT printer-is-accepting-jobs OF-TYPE boolean COUNT 1 IN-GROUP printer-attributes-tag 463 EXPECT ?printer-more-info OF-TYPE uri COUNT 1 IN-GROUP printer-attributes-tag 464 EXPECT printer-state OF-TYPE enum COUNT 1 IN-GROUP printer-attributes-tag 465 EXPECT ?printer-state-message OF-TYPE text COUNT 1 IN-GROUP printer-attributes-tag 466 EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag 467 EXPECT printer-up-time OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 468 EXPECT printer-uri-supported OF-TYPE uri IN-GROUP printer-attributes-tag 469 EXPECT queued-job-count OF-TYPE integer COUNT 1 IN-GROUP printer-attributes-tag 470 EXPECT uri-authentication-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 471 EXPECT uri-security-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 472 473 # 'job-template' attributes 474 EXPECT !copies-default 475 EXPECT !copies-supported 476 EXPECT !finishings-default 477 EXPECT !finishings-supported 478 EXPECT !job-hold-until-default 479 EXPECT !job-hold-until-supported 480 EXPECT !job-hold-until-default 481 EXPECT !job-hold-until-supported 482 EXPECT !job-priority-default 483 EXPECT !job-priority-supported 484 EXPECT !job-sheets-default 485 EXPECT !job-sheets-supported 486 EXPECT !media-default 487 EXPECT !media-ready 488 EXPECT !media-supported 489 EXPECT !multiple-document-handling-default 490 EXPECT !multiple-document-handling-supported 491 EXPECT !number-up-default 492 EXPECT !number-up-supported 493 EXPECT !number-up-supported 494 EXPECT !orientation-requested-default 495 EXPECT !orientation-requested-supported 496 EXPECT !pages-ranges-supported 497 EXPECT !print-quality-default 498 EXPECT !print-quality-supported 499 EXPECT !printer-resolution-default 500 EXPECT !printer-resolution-supported 501 EXPECT !sides-default 502 EXPECT !sides-supported 503} 504 505{ 506 NAME "Get-Printer-Attributes (requested-attributes='job-template')" 507 508 OPERATION Get-Printer-Attributes 509 510 GROUP operation-attributes-tag 511 ATTR charset attributes-charset utf-8 512 ATTR language attributes-natural-language en 513 ATTR uri printer-uri $uri 514 ATTR keyword requested-attributes 'job-template' 515 516 STATUS successful-ok 517 518 # 'media-col-database' attribute should never be returned unless 519 # explicitly requested... 520 EXPECT !media-col-database 521 522 # 'printer-description' attributes 523 EXPECT !charset-configured 524 EXPECT !charset-supported 525 EXPECT !color-supported 526 EXPECT !compression-supported 527 EXPECT !document-format-default 528 EXPECT !document-format-supported 529 EXPECT !generated-natural-language-supported 530 EXPECT !ipp-versions-supported 531 EXPECT !job-impressions-supported 532 EXPECT !multiple-document-jobs-supported 533 EXPECT !multiple-operation-time-out 534 EXPECT !natural-language-configured 535 EXPECT !operations-supported 536 EXPECT !pdl-override-supported 537 EXPECT !printer-info 538 EXPECT !printer-location 539 EXPECT !printer-make-and-model 540 EXPECT !printer-name 541 EXPECT !pages-per-minute-color 542 EXPECT !pages-per-minute 543 EXPECT !printer-current-time 544 EXPECT !printer-is-accepting-jobs 545 EXPECT !printer-more-info 546 EXPECT !printer-state 547 EXPECT !printer-state-message 548 EXPECT !printer-state-reasons 549 EXPECT !printer-up-time 550 EXPECT !printer-uri-supported 551 EXPECT !queued-job-count 552 EXPECT !uri-authentication-supported 553 EXPECT !uri-security-supported 554 555 # 'job-template' attributes 556 EXPECT ?copies-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 557 EXPECT ?copies-supported OF-TYPE rangeOfInteger IN-GROUP printer-attributes-tag 558 EXPECT ?finishings-default OF-TYPE enum IN-GROUP printer-attributes-tag 559 EXPECT ?finishings-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3 560 EXPECT ?job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 561 EXPECT ?job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold 562 EXPECT job-hold-until-default IF-DEFINED OPTIONAL_HOLD_JOB 563 EXPECT job-hold-until-supported IF-DEFINED OPTIONAL_HOLD_JOB 564 EXPECT ?job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 565 EXPECT ?job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 566 EXPECT ?job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag 567 EXPECT ?job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none 568 EXPECT ?media-default OF-TYPE no-value|keyword|name IN-GROUP printer-attributes-tag COUNT 1 569 EXPECT ?media-ready OF-TYPE keyword|name IN-GROUP printer-attributes-tag 570 EXPECT ?media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag 571 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)$$/" 572 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)$$/" 573 EXPECT ?number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 574 EXPECT ?number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 575 EXPECT ?number-up-supported WITH-VALUE 1 576 EXPECT ?orientation-requested-default OF-TYPE no-value|enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5,6 577 EXPECT ?orientation-requested-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5,6 578 EXPECT ?pages-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag 579 EXPECT ?print-quality-default OF-TYPE enum IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 3,4,5 580 EXPECT ?print-quality-supported OF-TYPE enum IN-GROUP printer-attributes-tag WITH-VALUE 3,4,5 581 EXPECT ?printer-resolution-default OF-TYPE resolution IN-GROUP printer-attributes-tag COUNT 1 582 EXPECT ?printer-resolution-supported OF-TYPE resolution IN-GROUP printer-attributes-tag 583 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)$$/" 584 EXPECT ?sides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "/^(one-sided|two-sided-long-edge|two-sided-short-edge)$$/" 585} 586