1# 2# IPP/2.2 test suite. 3# 4# Copyright © 2007-2017 by Apple Inc. 5# Copyright © 2001-2006 by Easy Software Products. All rights reserved. 6# 7# Licensed under Apache License v2.0. See the file "LICENSE" for more 8# information. 9# 10# Usage: 11# 12# ./ipptool -V 2.2 -f filename -t printer-uri ipp-2.2.test 13# 14 15# Do all of the IPP/1.1, IPP/2.0, and IPP/2.1 tests as an IPP/2.2 client 16INCLUDE "ipp-2.1.test" 17 18 19# Test required printer description attribute support. 20# 21# Required by: PWG 5100.12 section 6.4 22{ 23 NAME "PWG 5100.12 section 6.4 - Required Printer Description Attributes" 24 OPERATION Get-Printer-Attributes 25 GROUP operation-attributes-tag 26 ATTR charset attributes-charset utf-8 27 ATTR naturalLanguage attributes-natural-language en 28 ATTR uri printer-uri $uri 29 ATTR name requesting-user-name $user 30 ATTR mimeMediaType document-format application/octet-stream 31 32 STATUS successful-ok 33 34 # Job template attributes 35 EXPECT number-up-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 36 EXPECT number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0 37 EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "document-numbers" 38 EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "pages" 39 EXPECT page-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true 40 41 # Printer description attributes 42 EXPECT job-creation-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 43 EXPECT job-ids-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true 44 EXPECT media-col-ready 45 EXPECT media-ready 46 EXPECT multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true 47 EXPECT printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag 48 EXPECT printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert 49 EXPECT printer-device-id OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 50 EXPECT printer-message-from-operator OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "/^.{0,127}$$/" 51 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "completed" 52 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "proof-print" 53 EXPECT which-jobs-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "not-completed" 54 55 # Operations 56 EXPECT operations-supported WITH-VALUE 0x0024 # Pause-Printer-After-Current-Job 57 EXPECT operations-supported WITH-VALUE 0x0025 # Hold-New-Jobs 58 EXPECT operations-supported WITH-VALUE 0x0026 # Release-Held-New-Jobs 59 EXPECT operations-supported WITH-VALUE 0x0029 # Restart-Printer 60 EXPECT operations-supported WITH-VALUE 0x002A # Shutdown-Printer 61 EXPECT operations-supported WITH-VALUE 0x002B # Startup-Printer 62 EXPECT operations-supported WITH-VALUE 0x002C # Reprocess-Job 63 EXPECT operations-supported WITH-VALUE 0x002D # Cancel-Current-Job 64 EXPECT operations-supported WITH-VALUE 0x002E # Suspend-Current-Job 65 EXPECT operations-supported WITH-VALUE 0x002F # Resume-Job 66 EXPECT operations-supported WITH-VALUE 0x0030 # Promote-Job 67 EXPECT operations-supported WITH-VALUE 0x0031 # Schedule-Job-After 68 EXPECT operations-supported WITH-VALUE 0x0033 # Cancel-Document 69 EXPECT operations-supported WITH-VALUE 0x0034 # Get-Document-Attributes 70 EXPECT operations-supported WITH-VALUE 0x0035 # Get-Documents 71 EXPECT operations-supported WITH-VALUE 0x0037 # Set-Document-Attributes 72 EXPECT operations-supported WITH-VALUE 0x0038 # Cancel-Jobs 73 EXPECT operations-supported WITH-VALUE 0x0039 # Cancel-My-Jobs 74 EXPECT operations-supported WITH-VALUE 0x003A # Resubmit-Job 75 EXPECT operations-supported WITH-VALUE 0x003B # Close-Job 76} 77