mirror of https://gitee.com/openkylin/cups.git
164 lines
3.3 KiB
Plaintext
164 lines
3.3 KiB
Plaintext
#
|
||
# Verify that the server requires the following attributes:
|
||
#
|
||
# attributes-charset
|
||
# attributes-natural-language
|
||
# printer-uri/job-uri
|
||
#
|
||
# Copyright © 2007-2019 by Apple Inc.
|
||
# Copyright © 2001-2006 by Easy Software Products. All rights reserved.
|
||
#
|
||
# Licensed under Apache License v2.0. See the file "LICENSE" for more
|
||
# information.
|
||
#
|
||
{
|
||
# The name of the test...
|
||
NAME "No Attributes"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Charset Attribute"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR charset attributes-charset utf-8
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Language Attribute"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR language attributes-natural-language en
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Language + Charset Attributes"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR language attributes-natural-language en
|
||
ATTR charset attributes-charset utf-8
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Charset + Language Attributes"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR charset attributes-charset utf-8
|
||
ATTR language attributes-natural-language en
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Charset + Language + Printer URI Attributes"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR charset attributes-charset utf-8
|
||
ATTR language attributes-natural-language en
|
||
ATTR uri printer-uri $uri
|
||
|
||
# What statuses are OK?
|
||
STATUS successful-ok
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Charset + Language + Job URI Attributes"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR charset attributes-charset utf-8
|
||
ATTR language attributes-natural-language en
|
||
ATTR uri job-uri $scheme://$hostname:$port/jobs
|
||
|
||
# What statuses are OK?
|
||
STATUS client-error-bad-request
|
||
|
||
# What attributes do we expect?
|
||
EXPECT attributes-charset
|
||
EXPECT attributes-natural-language
|
||
}
|
||
{
|
||
# The name of the test...
|
||
NAME "Bad IPP Version"
|
||
|
||
# The operation to use
|
||
OPERATION get-jobs
|
||
|
||
# The version number to use
|
||
VERSION 0.0
|
||
|
||
# The attributes to send
|
||
GROUP operation
|
||
ATTR charset attributes-charset utf-8
|
||
ATTR language attributes-natural-language en
|
||
ATTR uri printer-uri ipp://localhost/printers
|
||
|
||
# What statuses are OK?
|
||
STATUS server-error-version-not-supported
|
||
}
|
||
#
|
||
# End of "$Id$"
|
||
#
|