]> git.ipfire.org Git - thirdparty/cups.git/blob - everywhere/bonjour-value-tests.test
Update software for stable draft of IPP Everywhere Printer Self-Certification
[thirdparty/cups.git] / everywhere / bonjour-value-tests.test
1 #
2 # "$Id$"
3 #
4 # IPP Everywhere Printer Self-Certification Manual 1.0: Section 5: Bonjour Tests.
5 #
6 # Copyright 2014-2015 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 # (run from within ippfind)
19 # ippfind ... -x ipptool -t "{}" bonjour-value-tests.test ";"
20 #
21
22 FILE-ID "org.pwg.ipp-everywhere.20151009.bonjour"
23
24 {
25 # The name of the test...
26 NAME "Validate TXT record values using Get-Printer-Attributes"
27
28 # The operation to use
29 OPERATION Get-Printer-Attributes
30
31 # Attributes, starting in the operation group...
32 GROUP operation-attributes-tag
33 ATTR charset attributes-charset utf-8
34 ATTR language attributes-natural-language en
35 ATTR uri printer-uri $uri
36
37 # What statuses are OK?
38 STATUS successful-ok
39
40 # What attributes do we expect?
41 EXPECT printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "$ENV[IPPFIND_TXT_ADMINURL]"
42 EXPECT printer-uuid OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE "urn:uuid:$ENV[IPPFIND_TXT_UUID]"
43 }
44
45 #
46 # End of "$Id$".
47 #