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