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