summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-03-22 13:00:54 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-03-22 13:00:54 -0400
commit098d20d4b92d3e73bf50bb6e7043f62159028ab3 (patch)
tree22a71d01ee971c846a029b0e29bc3703fc3a2368 /test
parent6d56631f9bd57c0426cf966be02cf90d9778820b (diff)
downloadcups-098d20d4b92d3e73bf50bb6e7043f62159028ab3.tar.gz
Make the default get-printer-attributes test request media-col-database.
Diffstat (limited to 'test')
-rw-r--r--test/get-printer-attributes-2.0.test48
-rw-r--r--test/get-printer-attributes.test20
2 files changed, 15 insertions, 53 deletions
diff --git a/test/get-printer-attributes-2.0.test b/test/get-printer-attributes-2.0.test
deleted file mode 100644
index adfb45758..000000000
--- a/test/get-printer-attributes-2.0.test
+++ /dev/null
@@ -1,48 +0,0 @@
-# Get printer attributes using get-printer-attributes
-{
- # The name of the test...
- NAME "Get printer attributes using get-printer-attributes"
-
- # The resource to use for the POST
- # RESOURCE /admin
-
- # The operation to use
- OPERATION get-printer-attributes
-
- # The version to use
- VERSION 2.0
-
- # Attributes, starting in the operation group...
- GROUP operation
- ATTR charset attributes-charset utf-8
- ATTR language attributes-natural-language en
- ATTR uri printer-uri $uri
- ATTR keyword requested-attributes all,media-col-database
-
- # What statuses are OK?
- STATUS successful-ok
-
- # What attributes do we expect?
- EXPECT charset-configured
- EXPECT charset-supported
- EXPECT compression-supported
- EXPECT document-format-default
- EXPECT document-format-supported
- EXPECT generated-natural-language-supported
- EXPECT ipp-versions-supported
- EXPECT media-col-default
- EXPECT natural-language-configured
- EXPECT operations-supported
- EXPECT printer-info
- EXPECT printer-is-accepting-jobs
- EXPECT printer-location
- EXPECT printer-make-and-model
- EXPECT printer-more-info
- EXPECT printer-name
- EXPECT printer-state
- EXPECT printer-state-reasons
- EXPECT printer-up-time
- EXPECT printer-uri-supported
- EXPECT uri-authentication-supported
- EXPECT uri-security-supported
-}
diff --git a/test/get-printer-attributes.test b/test/get-printer-attributes.test
index 5940017a0..adfb45758 100644
--- a/test/get-printer-attributes.test
+++ b/test/get-printer-attributes.test
@@ -1,16 +1,23 @@
# Get printer attributes using get-printer-attributes
{
# The name of the test...
- NAME "Get printer attributes using Get-Printer-Attributes"
+ NAME "Get printer attributes using get-printer-attributes"
+
+ # The resource to use for the POST
+ # RESOURCE /admin
# The operation to use
- OPERATION Get-Printer-Attributes
+ OPERATION get-printer-attributes
+
+ # The version to use
+ VERSION 2.0
# Attributes, starting in the operation group...
- GROUP operation-attributes-tag
+ GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
+ ATTR keyword requested-attributes all,media-col-database
# What statuses are OK?
STATUS successful-ok
@@ -23,16 +30,19 @@
EXPECT document-format-supported
EXPECT generated-natural-language-supported
EXPECT ipp-versions-supported
+ EXPECT media-col-default
EXPECT natural-language-configured
EXPECT operations-supported
- EXPECT pdl-override-supported
+ EXPECT printer-info
EXPECT printer-is-accepting-jobs
+ EXPECT printer-location
+ EXPECT printer-make-and-model
+ EXPECT printer-more-info
EXPECT printer-name
EXPECT printer-state
EXPECT printer-state-reasons
EXPECT printer-up-time
EXPECT printer-uri-supported
- EXPECT queued-job-count
EXPECT uri-authentication-supported
EXPECT uri-security-supported
}