1 # Test print-job and later job-hold-until attribute
3 # The name of the test...
4 NAME "Disable printer..."
6 # The resource to use for the POST
10 OPERATION pause-printer
12 # Attributes, starting in the operation group...
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
19 # What statuses are OK?
25 # The name of the test...
28 # The resource to use for the POST
31 # The operation to use
34 # Attributes, starting in the operation group...
36 ATTR charset attributes-charset utf-8
37 ATTR language attributes-natural-language en
38 ATTR uri printer-uri $uri
39 ATTR name requesting-user-name $user
40 ATTR mimetype document-format application/postscript
45 FILE ../data/testprint.ps
47 # What statuses are OK?
51 # What attributes do we expect?
57 # The name of the test...
60 # The resource to use for the POST
63 # The operation to use
64 OPERATION get-job-attributes
66 # Attributes, starting in the operation group...
68 ATTR charset attributes-charset utf-8
69 ATTR language attributes-natural-language en
70 ATTR uri printer-uri $uri
71 ATTR integer job-id $job-id
73 # What statuses are OK?
77 # What attributes do we expect?
83 # The name of the test...
84 NAME "Set job attrs with job-hold-until"
86 # The resource to use for the POST
89 # The operation to use
90 OPERATION set-job-attributes
92 # Attributes, starting in the operation group...
94 ATTR charset attributes-charset utf-8
95 ATTR language attributes-natural-language en
96 ATTR uri printer-uri $uri
97 ATTR integer job-id $job-id
98 ATTR name requesting-user-name $user
101 ATTR name job-hold-until 00:30:00
103 # What statuses are OK?
109 # The name of the test...
110 NAME "Get job attrs again"
112 # The resource to use for the POST
115 # The operation to use
116 OPERATION get-job-attributes
118 # Attributes, starting in the operation group...
120 ATTR charset attributes-charset utf-8
121 ATTR language attributes-natural-language en
122 ATTR uri printer-uri $uri
123 ATTR integer job-id $job-id
125 # What statuses are OK?
129 # What attributes do we expect?
131 EXPECT job-hold-until
135 # The name of the test...
136 NAME "Enable printer..."
138 # The resource to use for the POST
141 # The operation to use
142 OPERATION resume-printer
144 # Attributes, starting in the operation group...
146 ATTR charset attributes-charset utf-8
147 ATTR language attributes-natural-language en
148 ATTR uri printer-uri $uri
149 ATTR name requesting-user-name $user
151 # What statuses are OK?
157 # The name of the test...
158 NAME "Get job attrs (last time)"
160 # The resource to use for the POST
163 # The operation to use
164 OPERATION get-job-attributes
166 # Attributes, starting in the operation group...
168 ATTR charset attributes-charset utf-8
169 ATTR language attributes-natural-language en
170 ATTR uri printer-uri $uri
171 ATTR integer job-id $job-id
173 # What statuses are OK?
177 # What attributes do we expect?
179 EXPECT job-hold-until