]>
Commit | Line | Data |
---|---|---|
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? | |
23 | STATUS ok | |
24 | STATUS ok-subst | |
25 | ||
26 | # What attributes do we expect? | |
27 | EXPECT job-id | |
28 | EXPECT job-uri | |
29 | } | |
30 | { | |
31 | # The name of the test... | |
32 | NAME "... and send-document" | |
33 | ||
34 | # The resource to use for the POST | |
35 | # RESOURCE /admin | |
36 | ||
37 | # The operation to use | |
38 | OPERATION send-document | |
39 | ||
40 | # Attributes, starting in the operation group... | |
41 | GROUP operation | |
42 | ATTR charset attributes-charset utf-8 | |
43 | ATTR language attributes-natural-language en | |
44 | ATTR uri printer-uri $uri | |
45 | ATTR integer job-id $job-id | |
46 | ATTR name requesting-user-name $user | |
47 | ATTR boolean last-document true | |
48 | ||
49 | FILE ../data/testprint.ps | |
50 | ||
51 | # What statuses are OK? | |
52 | STATUS ok | |
53 | STATUS ok-subst | |
54 | } |