]> git.ipfire.org Git - thirdparty/cups.git/blame - examples/create-job.test
Changelog
[thirdparty/cups.git] / examples / create-job.test
CommitLineData
ef416fc2 1# Print a test page using create-job + send-document
2{
3 # The name of the test...
4 NAME "Print test page using create-job"
5
6 # The resource to use for the POST
7 # RESOURCE /admin
8
9 # The operation to use
10 OPERATION create-job
11
12 # Attributes, starting in the operation group...
13 GROUP operation
14 ATTR charset attributes-charset utf-8
15 ATTR language attributes-natural-language en
16 ATTR uri printer-uri $uri
17 ATTR name requesting-user-name $user
18
19 GROUP job
20 ATTR integer copies 1
21
22 # What statuses are OK?
09a101d6 23 STATUS successful-ok
ef416fc2 24
25 # What attributes do we expect?
26 EXPECT job-id
27 EXPECT job-uri
28}
29{
30 # The name of the test...
31 NAME "... and send-document"
32
33 # The resource to use for the POST
34 # RESOURCE /admin
35
36 # The operation to use
37 OPERATION send-document
38
39 # Attributes, starting in the operation group...
40 GROUP operation
41 ATTR charset attributes-charset utf-8
42 ATTR language attributes-natural-language en
43 ATTR uri printer-uri $uri
44 ATTR integer job-id $job-id
45 ATTR name requesting-user-name $user
e78c14f7 46 ATTR mimeMediaType document-format $filetype
ef416fc2 47 ATTR boolean last-document true
48
e78c14f7 49 FILE $filename
ef416fc2 50
51 # What statuses are OK?
09a101d6 52 STATUS successful-ok
ef416fc2 53}