Revert manifest to default one
[external/cups.git] / test / create-printer-subscription.test
1 #
2 # "$Id: create-printer-subscription.test 9084 2010-04-07 06:54:31Z mike $"
3 #
4 #   Create a printer subscription.
5 #
6 #   Copyright 2007-2010 by Apple Inc.
7 #   Copyright 2001-2006 by Easy Software Products. All rights reserved.
8 #
9 #   These coded instructions, statements, and computer programs are the
10 #   property of Apple Inc. and are protected by Federal copyright
11 #   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
12 #   which should have been included with this file.  If this file is
13 #   file is missing or damaged, see the license at "http://www.cups.org/".
14 #
15 # Usage:
16 #
17 #   ./ipptool -d recipient=uri printer-uri create-printer-subscription.test
18 #
19
20
21 {
22         # The name of the test...
23         NAME "Create a printer subscription"
24
25         # The operation to use
26         OPERATION Create-Printer-Subscription
27
28         # The attributes to send
29         GROUP operation-attributes-tag
30         ATTR charset attributes-charset utf-8
31         ATTR language attributes-natural-language en
32         ATTR uri printer-uri $uri
33
34         GROUP subscription-attributes-tag
35         ATTR uri notify-recipient $recipient
36         ATTR keyword notify-events printer-state-changed
37
38         # What statuses are OK?
39         STATUS successful-ok
40
41         # What attributes do we expect?
42         EXPECT notify-subscription-id OF-TYPE integer WITH-VALUE >0
43         DISPLAY notify-subscription-id
44 }
45
46
47 #
48 # End of "$Id: create-printer-subscription.test 9084 2010-04-07 06:54:31Z mike $"
49 #