summaryrefslogtreecommitdiff
path: root/examples/cups-create-local-printer.test
blob: bdf4fc54d90eab0ebddbe44015fa3a394a4aaf5b (plain)
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
# Create a local (temporary) print queue
#
# Usage:
#
#    ipptool -tv -d name=... -d device=ipp://... ipp://localhost:port/ cups-create-local-printer.test
{
	# The name of the test...
	NAME "Create local print queue"

	# The operation to use
	OPERATION CUPS-Create-Local-Printer

	# Attributes, starting in the operation group...
	GROUP operation-attributes-tag
	ATTR charset attributes-charset utf-8
	ATTR language attributes-natural-language en
	ATTR uri printer-uri $uri
	ATTR name requesting-user-name $user

	GROUP printer-attributes-tag
	ATTR name printer-name $name
	ATTR uri device-uri $device

	# What statuses are OK?
	STATUS successful-ok

	# What attributes do we expect?
	EXPECT printer-is-accepting-jobs OF-TYPE boolean
	EXPECT printer-state OF-TYPE enum
	EXPECT printer-state-reasons OF-TYPE keyword
	EXPECT printer-uri-supported OF-TYPE uri
}