]> git.ipfire.org Git - thirdparty/cups.git/blame - test/get-notifications.test
Import CUPS v1.7.1
[thirdparty/cups.git] / test / get-notifications.test
CommitLineData
db8b865d 1#
61515785 2# "$Id: get-notifications.test 11396 2013-11-06 20:09:03Z msweet $"
db8b865d
MS
3#
4# Get subscription events.
5#
6# Copyright 2007-2013 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 id=NNN printer-uri get-notifications.test
18#
19
20{
21 # The name of the test...
22 NAME "Get events using Get-Notifications"
23
24 # The operation to use
25 OPERATION Get-Notifications
26
27 # The attributes to send
28 GROUP operation-attributes-tag
29 ATTR charset attributes-charset utf-8
30 ATTR language attributes-natural-language en
31 ATTR uri printer-uri $uri
32 ATTR integer notify-subscription-ids $id
33
34 # What statuses are OK?
35 STATUS successful-ok
36
37 # What attributes do we expect?
38 EXPECT notify-event OF-TYPE keyword
39 DISPLAY notify-event
40 DISPLAY notify-text
41}
42
43
44#
61515785 45# End of "$Id: get-notifications.test 11396 2013-11-06 20:09:03Z msweet $"
db8b865d 46#