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