Blame test/fax-job.test

Packit 2fc92b
# Fax a test page using Create-Job + Send-Document
Packit 2fc92b
#
Packit 2fc92b
# Usage:
Packit 2fc92b
#
Packit 2fc92b
#    ./ipptest -f filename ipp://... fax-job.test
Packit 2fc92b
{
Packit 2fc92b
	# The name of the test...
Packit 2fc92b
	NAME "Create FaxOut Job for 555-1212 and an IPP destination"
Packit 2fc92b
Packit 2fc92b
	# The operation to use
Packit 2fc92b
	OPERATION Create-Job
Packit 2fc92b
Packit 2fc92b
	# Attributes, starting in the operation group...
Packit 2fc92b
	GROUP operation-attributes-tag
Packit 2fc92b
	ATTR charset attributes-charset utf-8
Packit 2fc92b
	ATTR language attributes-natural-language en
Packit 2fc92b
	ATTR uri printer-uri $uri
Packit 2fc92b
	ATTR name requesting-user-name $user
Packit 2fc92b
Packit 2fc92b
	GROUP job-attributes-tag
Packit 2fc92b
	ATTR collection destination-uris {
Packit 2fc92b
		MEMBER uri destination-uri tel:4055551212
Packit 2fc92b
	},{
Packit 2fc92b
		MEMBER uri destination-uri ipp://11.22.33.44/ipp/print
Packit 2fc92b
		MEMBER enum print-quality 5
Packit 2fc92b
		MEMBER keyword media na_letter_8.5x11in
Packit 2fc92b
	}
Packit 2fc92b
Packit 2fc92b
	# What statuses are OK?
Packit 2fc92b
	STATUS successful-ok
Packit 2fc92b
	STATUS successful-ok-ignored-or-substituted-attributes
Packit 2fc92b
Packit 2fc92b
	# What attributes do we expect?
Packit 2fc92b
	EXPECT job-id OF-TYPE integer WITH-VALUE >0
Packit 2fc92b
	EXPECT job-uri OF-TYPE uri
Packit 2fc92b
}
Packit 2fc92b
{
Packit 2fc92b
	# The name of the test...
Packit 2fc92b
	NAME "Send FaxOut Document"
Packit 2fc92b
Packit 2fc92b
	# The operation to use
Packit 2fc92b
	OPERATION Send-Document
Packit 2fc92b
Packit 2fc92b
	# Attributes, starting in the operation group...
Packit 2fc92b
	GROUP operation-attributes-tag
Packit 2fc92b
	ATTR charset attributes-charset utf-8
Packit 2fc92b
	ATTR language attributes-natural-language en
Packit 2fc92b
	ATTR uri printer-uri $uri
Packit 2fc92b
	ATTR integer job-id $job-id
Packit 2fc92b
	ATTR name requesting-user-name $user
Packit 2fc92b
	ATTR mimetype document-format $filetype
Packit 2fc92b
	ATTR boolean last-document true
Packit 2fc92b
Packit 2fc92b
	FILE $filename
Packit 2fc92b
Packit 2fc92b
	# What statuses are OK?
Packit 2fc92b
	STATUS successful-ok
Packit 2fc92b
	STATUS successful-ok-ignored-or-substituted-attributes
Packit 2fc92b
}