]>
Commit | Line | Data |
---|---|---|
8757020d | 1 | # Create a printer subscription. |
d1c13e16 | 2 | # |
aaf19ab0 MS |
3 | # Usage: |
4 | # | |
db8b865d | 5 | # ./ipptool [-d recipient=uri] printer-uri create-printer-subscription.test |
d1c13e16 MS |
6 | { |
7 | # The name of the test... | |
db8b865d MS |
8 | NAME "Create a push printer subscription" |
9 | SKIP-IF-NOT-DEFINED recipient | |
d1c13e16 MS |
10 | |
11 | # The operation to use | |
12 | OPERATION Create-Printer-Subscription | |
d1c13e16 MS |
13 | |
14 | # The attributes to send | |
aaf19ab0 | 15 | GROUP operation-attributes-tag |
d1c13e16 MS |
16 | ATTR charset attributes-charset utf-8 |
17 | ATTR language attributes-natural-language en | |
18 | ATTR uri printer-uri $uri | |
19 | ||
8757020d MS |
20 | GROUP subscription-attributes-tag |
21 | ATTR uri notify-recipient-uri $recipient | |
db8b865d MS |
22 | ATTR keyword notify-events printer-config-changed,printer-state-changed |
23 | ||
24 | # What statuses are OK? | |
25 | STATUS successful-ok | |
26 | ||
27 | # What attributes do we expect? | |
28 | EXPECT notify-subscription-id OF-TYPE integer WITH-VALUE >0 | |
29 | DISPLAY notify-subscription-id | |
30 | } | |
31 | ||
32 | { | |
33 | # The name of the test... | |
34 | NAME "Create a pull printer subscription" | |
35 | SKIP-IF-DEFINED recipient | |
36 | ||
37 | # The operation to use | |
38 | OPERATION Create-Printer-Subscription | |
39 | ||
40 | # The attributes to send | |
41 | GROUP operation-attributes-tag | |
42 | ATTR charset attributes-charset utf-8 | |
43 | ATTR language attributes-natural-language en | |
44 | ATTR uri printer-uri $uri | |
45 | ||
46 | GROUP subscription-attributes-tag | |
47 | ATTR keyword notify-pull-method ippget | |
48 | ATTR keyword notify-events printer-config-changed,printer-state-changed | |
d1c13e16 MS |
49 | |
50 | # What statuses are OK? | |
51 | STATUS successful-ok | |
52 | ||
53 | # What attributes do we expect? | |
aaf19ab0 | 54 | EXPECT notify-subscription-id OF-TYPE integer WITH-VALUE >0 |
d1c13e16 MS |
55 | DISPLAY notify-subscription-id |
56 | } |