]> git.ipfire.org Git - thirdparty/cups.git/blob - examples/get-notifications.test
Move example ipptool files to the examples directory.
[thirdparty/cups.git] / examples / get-notifications.test
1 #
2 # Get subscription events.
3 #
4 # Copyright © 2007-2013 by Apple Inc.
5 # Copyright © 2001-2006 by Easy Software Products. All rights reserved.
6 #
7 # Licensed under Apache License v2.0. See the file "LICENSE" for more
8 # information.
9 #
10 # Usage:
11 #
12 # ./ipptool -d id=NNN printer-uri get-notifications.test
13 #
14
15 {
16 # The name of the test...
17 NAME "Get events using Get-Notifications"
18
19 # The operation to use
20 OPERATION Get-Notifications
21
22 # The attributes to send
23 GROUP operation-attributes-tag
24 ATTR charset attributes-charset utf-8
25 ATTR language attributes-natural-language en
26 ATTR uri printer-uri $uri
27 ATTR integer notify-subscription-ids $id
28
29 # What statuses are OK?
30 STATUS successful-ok
31
32 # What attributes do we expect?
33 EXPECT notify-event OF-TYPE keyword
34 DISPLAY notify-event
35 DISPLAY notify-text
36 }