1# 2# "$Id: ipp-2.1.test 11433 2013-11-20 18:57:44Z msweet $" 3# 4# IPP/2.1 test suite. 5# 6# Copyright 2007-2011 by Apple Inc. 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# 17# ./ipptool -V 2.1 -f filename -t printer-uri ipp-2.1.test 18# 19 20# Do all of the IPP/1.1 and IPP/2.0 tests as an IPP/2.1 client 21INCLUDE "ipp-2.0.test" 22 23 24# Test required printer description attribute support. 25# 26# Required by: PWG 5100.12 section 6.3 27{ 28 NAME "PWG 5100.12 section 6.3 - Required Printer Description Attributes" 29 OPERATION Get-Printer-Attributes 30 GROUP operation-attributes-tag 31 ATTR charset attributes-charset utf-8 32 ATTR naturalLanguage attributes-natural-language en 33 ATTR uri printer-uri $uri 34 ATTR name requesting-user-name $user 35 ATTR mimeMediaType document-format application/octet-stream 36 37 STATUS successful-ok 38 39 # Job template attributes 40 EXPECT job-hold-until-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 41 EXPECT job-hold-until-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE no-hold 42 EXPECT job-priority-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 43 EXPECT job-priority-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0,<101 44 EXPECT job-settable-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 45 EXPECT job-sheets-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag 46 EXPECT job-sheets-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag WITH-VALUE none 47 EXPECT media-col-default OF-TYPE collection IN-GROUP printer-attributes-tag COUNT 1 48 EXPECT media-col-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 49 EXPECT media-col-supported WITH-VALUE media-size 50 EXPECT media-default OF-TYPE keyword|name IN-GROUP printer-attributes-tag COUNT 1 51 EXPECT media-supported OF-TYPE keyword|name IN-GROUP printer-attributes-tag 52 53 # Subscription attributes 54 EXPECT notify-events-default OF-TYPE keyword IN-GROUP printer-attributes-tag 55 EXPECT notify-events-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 56 EXPECT notify-lease-duration-default OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 57 EXPECT notify-lease-duration-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag 58 EXPECT notify-max-events-supported OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >1 59 EXPECT notify-pull-method-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE ippget 60 61 # Printer description attributes 62 EXPECT ippget-event-life OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 63 EXPECT multiple-operation-time-out OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE >0 64 65 # Operations 66 EXPECT operations-supported WITH-VALUE 0x0005 # Create-Job 67 EXPECT operations-supported WITH-VALUE 0x0006 # Send-Document 68 EXPECT operations-supported WITH-VALUE 0x000C # Hold-Job 69 EXPECT operations-supported WITH-VALUE 0x000D # Release-Job 70 EXPECT operations-supported WITH-VALUE 0x000E # Restart-Job 71 EXPECT operations-supported WITH-VALUE 0x0010 # Pause-Printer 72 EXPECT operations-supported WITH-VALUE 0x0011 # Resume-Printer 73 EXPECT operations-supported WITH-VALUE 0x0012 # Purge-Jobs 74 EXPECT operations-supported WITH-VALUE 0x0013 # Set-Printer-Attributes 75 EXPECT operations-supported WITH-VALUE 0x0014 # Set-Job-Attributes 76 EXPECT operations-supported WITH-VALUE 0x0015 # Get-Printer-Supported-Values 77 EXPECT operations-supported WITH-VALUE 0x0016 # Create-Printer-Subscriptions 78 EXPECT operations-supported WITH-VALUE 0x0018 # Get-Subscription-Attributes 79 EXPECT operations-supported WITH-VALUE 0x0019 # Get-Subscriptions 80 EXPECT operations-supported WITH-VALUE 0x001A # Renew-Subscription 81 EXPECT operations-supported WITH-VALUE 0x001B # Cancel-Subscription 82 EXPECT operations-supported WITH-VALUE 0x001C # Get-Notifications 83 EXPECT operations-supported WITH-VALUE 0x0022 # Enable-Printer 84 EXPECT operations-supported WITH-VALUE 0x0023 # Disable-Printer 85 86 EXPECT ?printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag 87 EXPECT ?printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert 88 EXPECT printer-settable-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag 89 EXPECT printer-state-change-time OF-TYPE integer IN-GROUP printer-attributes-tag COUNT 1 90 EXPECT printer-state-reasons OF-TYPE keyword IN-GROUP printer-attributes-tag 91} 92 93 94# 95# End of "$Id: ipp-2.1.test 11433 2013-11-20 18:57:44Z msweet $". 96# 97