HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/cups/current/share/cups/ipptool/cups-create-local-printer.test
# 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
}