4 # IPP Everywhere Printer Self-Certification Manual 1.0: Section 5: Bonjour Tests.
6 # Copyright 2014 by The Printer Working Group.
7 # Copyright 2007-2013 by Apple Inc.
8 # Copyright 2001-2006 by Easy Software Products. All rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Apple Inc. and are protected by Federal copyright
12 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 # which should have been included with this file. If this file is
14 # file is missing or damaged, see the license at "http://www.cups.org/".
18 # ./ipptool -tI printer-uri -d ADMINURL=url -d UUID=uuid bonjour-tests.test
21 FILE-ID "org.pwg.ipp-everywhere.bonjour-20140825"
24 SKIP-IF-DEFINED NO_VALUE_TESTS
26 # The name of the test...
27 NAME "Validate TXT record values using Get-Printer-Attributes"
29 # The operation to use
30 OPERATION Get-Printer-Attributes
32 # Attributes, starting in the operation group...
33 GROUP operation-attributes-tag
34 ATTR charset attributes-charset utf-8
35 ATTR language attributes-natural-language en
36 ATTR uri printer-uri $uri
38 # What statuses are OK?
41 # What attributes do we expect?
42 EXPECT printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$ADMINURL"
43 EXPECT printer-uuid OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "urn:uuid:$UUID"
47 SKIP-IF-NOT-DEFINED NO_VALUE_TESTS
49 # The name of the test...
50 NAME "Validate Get-Printer-Attributes after HTTP Upgrade"
52 # The operation to use
53 OPERATION Get-Printer-Attributes
55 # Attributes, starting in the operation group...
56 GROUP operation-attributes-tag
57 ATTR charset attributes-charset utf-8
58 ATTR language attributes-natural-language en
59 ATTR uri printer-uri $uri
61 # What statuses are OK?