]>
Commit | Line | Data |
---|---|---|
8288bfd0 MS |
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 | # | |
fe202ff4 | 18 | # ./ipptool -tI printer-uri -d ADMINURL=url -d UUID=uuid bonjour-value-tests.test |
8288bfd0 MS |
19 | # |
20 | ||
276762cd | 21 | FILE-ID "org.pwg.ipp-everywhere.20140826.bonjour" |
8288bfd0 MS |
22 | |
23 | { | |
8288bfd0 MS |
24 | # The name of the test... |
25 | NAME "Validate TXT record values using Get-Printer-Attributes" | |
26 | ||
27 | # The operation to use | |
28 | OPERATION Get-Printer-Attributes | |
29 | ||
30 | # Attributes, starting in the operation group... | |
31 | GROUP operation-attributes-tag | |
32 | ATTR charset attributes-charset utf-8 | |
33 | ATTR language attributes-natural-language en | |
34 | ATTR uri printer-uri $uri | |
35 | ||
36 | # What statuses are OK? | |
37 | STATUS successful-ok | |
38 | ||
39 | # What attributes do we expect? | |
40 | EXPECT printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$ADMINURL" | |
41 | EXPECT printer-uuid OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "urn:uuid:$UUID" | |
42 | } | |
43 | ||
8288bfd0 MS |
44 | # |
45 | # End of "$Id$". | |
46 | # |