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