]> git.ipfire.org Git - thirdparty/cups.git/blob - everywhere/bonjour-tests.test
Save work on all of the IPP Everywhere tests, and a bug fix for ippfind.
[thirdparty/cups.git] / everywhere / bonjour-tests.test
1 #
2 # "$Id$"
3 #
4 # IPP Everywhere Printer Self-Certification Manual 1.0: Section 5: Bonjour Tests.
5 #
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.
9 #
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/".
15 #
16 # Usage:
17 #
18 # ./ipptool -tI printer-uri -d ADMINURL=url -d UUID=uuid bonjour-tests.test
19 #
20
21 FILE-ID "org.pwg.ipp-everywhere.bonjour-20140825"
22
23 {
24 SKIP-IF-DEFINED NO_VALUE_TESTS
25
26 # The name of the test...
27 NAME "Validate TXT record values using Get-Printer-Attributes"
28
29 # The operation to use
30 OPERATION Get-Printer-Attributes
31
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
37
38 # What statuses are OK?
39 STATUS successful-ok
40
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"
44 }
45
46 {
47 SKIP-IF-NOT-DEFINED NO_VALUE_TESTS
48
49 # The name of the test...
50 NAME "Validate Get-Printer-Attributes after HTTP Upgrade"
51
52 # The operation to use
53 OPERATION Get-Printer-Attributes
54
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
60
61 # What statuses are OK?
62 STATUS successful-ok
63 }
64
65 #
66 # End of "$Id$".
67 #