Revert manifest to default one
[external/cups.git] / test / 4.1-requests.test
1 #
2 # "$Id: 4.1-requests.test 9084 2010-04-07 06:54:31Z mike $"
3 #
4 #   Verify that the server requires the following attributes:
5 #
6 #       attributes-charset
7 #       attributes-natural-language
8 #       printer-uri/job-uri
9 #
10 {
11         # The name of the test...
12         NAME "No Attributes"
13
14         # The operation to use
15         OPERATION get-jobs
16
17         # What statuses are OK?
18         STATUS client-error-bad-request
19
20         # What attributes do we expect?
21         EXPECT attributes-charset
22         EXPECT attributes-natural-language
23 }
24 {
25         # The name of the test...
26         NAME "Charset Attribute"
27
28         # The operation to use
29         OPERATION get-jobs
30
31         # The attributes to send
32         GROUP operation
33         ATTR charset attributes-charset utf-8
34
35         # What statuses are OK?
36         STATUS client-error-bad-request
37
38         # What attributes do we expect?
39         EXPECT attributes-charset
40         EXPECT attributes-natural-language
41 }
42 {
43         # The name of the test...
44         NAME "Language Attribute"
45
46         # The operation to use
47         OPERATION get-jobs
48
49         # The attributes to send
50         GROUP operation
51         ATTR language attributes-natural-language en
52
53         # What statuses are OK?
54         STATUS client-error-bad-request
55
56         # What attributes do we expect?
57         EXPECT attributes-charset
58         EXPECT attributes-natural-language
59 }
60 {
61         # The name of the test...
62         NAME "Language + Charset Attributes"
63
64         # The operation to use
65         OPERATION get-jobs
66
67         # The attributes to send
68         GROUP operation
69         ATTR language attributes-natural-language en
70         ATTR charset attributes-charset utf-8
71
72         # What statuses are OK?
73         STATUS client-error-bad-request
74
75         # What attributes do we expect?
76         EXPECT attributes-charset
77         EXPECT attributes-natural-language
78 }
79 {
80         # The name of the test...
81         NAME "Charset + Language Attributes"
82
83         # The operation to use
84         OPERATION get-jobs
85
86         # The attributes to send
87         GROUP operation
88         ATTR charset attributes-charset utf-8
89         ATTR language attributes-natural-language en
90
91         # What statuses are OK?
92         STATUS client-error-bad-request
93
94         # What attributes do we expect?
95         EXPECT attributes-charset
96         EXPECT attributes-natural-language
97 }
98 {
99         # The name of the test...
100         NAME "Charset + Language + Printer URI Attributes"
101
102         # The operation to use
103         OPERATION get-jobs
104
105         # The attributes to send
106         GROUP operation
107         ATTR charset attributes-charset utf-8
108         ATTR language attributes-natural-language en
109         ATTR uri printer-uri $uri
110
111         # What statuses are OK?
112         STATUS successful-ok
113
114         # What attributes do we expect?
115         EXPECT attributes-charset
116         EXPECT attributes-natural-language
117 }
118 {
119         # The name of the test...
120         NAME "Charset + Language + Job URI Attributes"
121
122         # The operation to use
123         OPERATION get-jobs
124
125         # The attributes to send
126         GROUP operation
127         ATTR charset attributes-charset utf-8
128         ATTR language attributes-natural-language en
129         ATTR uri job-uri $scheme://$hostname:$port/jobs
130
131         # What statuses are OK?
132         STATUS client-error-bad-request
133
134         # What attributes do we expect?
135         EXPECT attributes-charset
136         EXPECT attributes-natural-language
137 }
138 {
139         # The name of the test...
140         NAME "Bad IPP Version"
141
142         # The operation to use
143         OPERATION get-jobs
144
145         # The version number to use
146         VERSION 0.0
147
148         # The attributes to send
149         GROUP operation
150         ATTR charset attributes-charset utf-8
151         ATTR language attributes-natural-language en
152         ATTR uri printer-uri ipp://localhost/printers
153
154         # What statuses are OK?
155         STATUS server-error-version-not-supported
156 }
157 #
158 # End of "$Id: 4.1-requests.test 9084 2010-04-07 06:54:31Z mike $"
159 #