]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/4.2-cups-printer-ops.test
Import CUPS v1.7.1
[thirdparty/cups.git] / test / 4.2-cups-printer-ops.test
index be311d966437fa97ca566db2e38b3243986689f5..a95d81f5e87f9868b0aa8b2e1ed4a6d867870721 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: 4.2-cups-printer-ops.test 177 2006-06-21 00:20:03Z jlovell $"
+# "$Id: 4.2-cups-printer-ops.test 11396 2013-11-06 20:09:03Z msweet $"
 #
 #   Verify that the CUPS printer operations work.
 #
        ATTR name requesting-user-name $user
 
         GROUP subscription
-       ATTR uri notify-recipient testnotify
+       ATTR uri notify-recipient-uri testnotify://
        ATTR keyword notify-events printer-added,printer-modified,printer-deleted
 
        # What statuses are OK?
        EXPECT attributes-charset
        EXPECT attributes-natural-language
 }
+{
+       # The name of the test...
+       NAME "Get Default Printer with no default set"
+
+       # The operation to use
+       OPERATION cups-get-default
+       RESOURCE /
+
+       # 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-not-found
+
+       # What attributes do we expect?
+       EXPECT attributes-charset
+       EXPECT attributes-natural-language
+}
 {
        # The name of the test...
        NAME "Set Default Printer to Test1"
        EXPECT attributes-charset
        EXPECT attributes-natural-language
 }
+{
+       # The name of the test...
+       NAME "Get Default Printer"
+
+       # The operation to use
+       OPERATION cups-get-default
+       RESOURCE /
+
+       # The attributes to send
+       GROUP operation
+       ATTR charset attributes-charset utf-8
+       ATTR language attributes-natural-language en
+
+       # What statuses are OK?
+       STATUS successful-ok
+
+       # What attributes do we expect?
+       EXPECT attributes-charset
+       EXPECT attributes-natural-language
+       EXPECT printer-name
+       EXPECT printer-uri-supported
+}
+{
+       # The name of the test...
+       NAME "Get IPP/2.x Attributes for Printer Test1"
+
+       # The operation to use
+       OPERATION get-printer-attributes
+       RESOURCE /
+
+       # The IPP version to use
+       VERSION 2.0
+
+       # The attributes to send
+       GROUP operation
+       ATTR charset attributes-charset utf-8
+       ATTR language attributes-natural-language en
+       ATTR uri printer-uri $method://$hostname:$port/printers/Test1
+
+       # What statuses are OK?
+       STATUS successful-ok
+
+       # What attributes do we expect?
+       EXPECT media-col-default
+}
 
 #
-# End of "$Id: 4.2-cups-printer-ops.test 177 2006-06-21 00:20:03Z jlovell $"
+# End of "$Id: 4.2-cups-printer-ops.test 11396 2013-11-06 20:09:03Z msweet $"
 #