File: create-printer-subscription.test

package info (click to toggle)
cups 1.4.4-7%2Bsqueeze5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 25,504 kB
  • ctags: 9,583
  • sloc: ansic: 138,222; sh: 37,355; cpp: 25,469; makefile: 3,285; perl: 190; python: 127; php: 28
file content (36 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# "$Id: 4.4-subscription-ops.test 4840 2005-11-14 21:53:30Z mike $"
#
#   Verify that the CUPS subscription operations work.
#
{
	# The name of the test...
	NAME "Add Printer Subscription w/Lease"

	# The operation to use
	OPERATION Create-Printer-Subscription
	RESOURCE /

	# The attributes to send
	GROUP operation
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri

        GROUP subscription
	ATTR uri notify-recipient testnotify://nowait
	ATTR keyword notify-events printer-state-changed

	# What statuses are OK?
	STATUS successful-ok

	# What attributes do we expect?
	EXPECT attributes-charset
	EXPECT attributes-natural-language
	EXPECT notify-subscription-id
	DISPLAY notify-subscription-id
}

#
# End of "$Id: 4.4-subscription-ops.test 4840 2005-11-14 21:53:30Z mike $"
#