summaryrefslogtreecommitdiff
path: root/test/4.4-subscription-ops.test
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-11-19 23:25:47 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-11-19 23:25:47 +0000
commit52f6f666c3ffd368f98d5be963e2e7a92f3dc82b (patch)
tree4a94cce231591fbbcdc6cbaf74b7e4f427662e6a /test/4.4-subscription-ops.test
parent9380acaa78e7b36fe924662ce3134bdb9acc4225 (diff)
downloadcups-52f6f666c3ffd368f98d5be963e2e7a92f3dc82b.tar.gz
Merge changes from CUPS 1.4svn-r8148.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1068 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'test/4.4-subscription-ops.test')
-rw-r--r--test/4.4-subscription-ops.test34
1 files changed, 30 insertions, 4 deletions
diff --git a/test/4.4-subscription-ops.test b/test/4.4-subscription-ops.test
index 823f8dacd..f63cfcbd2 100644
--- a/test/4.4-subscription-ops.test
+++ b/test/4.4-subscription-ops.test
@@ -15,7 +15,7 @@
GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
- ATTR uri printer-uri $method://$hostname:$port/printers/Test1
+ ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1
GROUP subscription
ATTR uri notify-recipient-uri testnotify://
@@ -46,7 +46,7 @@
GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
- ATTR uri printer-uri $method://$hostname:$port/printers/Test1
+ ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1
ATTR integer notify-subscription-id $notify-subscription-id
# What statuses are OK?
@@ -68,7 +68,7 @@
GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
- ATTR uri printer-uri $method://$hostname:$port/printers/Test1
+ ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1
GROUP subscription
ATTR uri notify-recipient-uri testnotify://
@@ -101,7 +101,7 @@
GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
- ATTR uri printer-uri $method://$hostname:$port/printers/Test1
+ ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1
# What statuses are OK?
STATUS successful-ok
@@ -116,6 +116,32 @@
EXPECT notify-events
DISPLAY notify-events
}
+{
+ # The name of the test...
+ NAME "Check MaxSubscriptions limits"
+
+ # The operation to use
+ OPERATION Create-Printer-Subscription
+ RESOURCE /
+
+ # The attributes to send
+ GROUP operation
+ ATTR charset attributes-charset utf-8
+ ATTR language attributes-natural-language en
+ ATTR uri printer-uri $scheme://$hostname:$port/printers/Test1
+
+ GROUP subscription
+ ATTR uri notify-recipient-uri testnotify://
+ ATTR keyword notify-events printer-state-changed
+ ATTR integer notify-lease-duration 5
+
+ # What statuses are OK?
+ STATUS client-error-too-many-subscriptions
+
+ # What attributes do we expect?
+ EXPECT attributes-charset
+ EXPECT attributes-natural-language
+}
#
# End of "$Id: 4.4-subscription-ops.test 6635 2007-07-09 20:34:48Z mike $"