[Zope-CVS] SVN: PluggableAuthService/trunk/plugins/tests/ChallengeProtocolChooser.txt Fix tests against Zope-2.8.x. (It stills pass against 2.7.x)

Julien Anguenot ja at nuxeo.com
Thu Nov 3 21:00:34 EST 2005


Log message for revision 39879:
  Fix tests against Zope-2.8.x. (It stills pass against 2.7.x)

Changed:
  U   PluggableAuthService/trunk/plugins/tests/ChallengeProtocolChooser.txt

-=-
Modified: PluggableAuthService/trunk/plugins/tests/ChallengeProtocolChooser.txt
===================================================================
--- PluggableAuthService/trunk/plugins/tests/ChallengeProtocolChooser.txt	2005-11-03 23:07:34 UTC (rev 39878)
+++ PluggableAuthService/trunk/plugins/tests/ChallengeProtocolChooser.txt	2005-11-04 02:00:34 UTC (rev 39879)
@@ -85,7 +85,7 @@
 
   >>> print http(r"""
   ... GET /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...
 
 With the right credentials though the request should succeed:
@@ -93,7 +93,7 @@
   >>> print http(r"""
   ... GET /%s/test_script HTTP/1.1
   ... Authorization: Basic %s:%s
-  ... """ % (folder_name, username, password), handle_errors=False)
+  ... """ % (folder_name, username, password), handle_errors=True)
   HTTP/1.1 200 OK
   ...
   Access Granted
@@ -103,7 +103,7 @@
 
   >>> print http(r"""
   ... PROPFIND /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...
 
 And with the right credentials the request should succeed:
@@ -111,13 +111,13 @@
   >>> print http(r"""
   ... PROPFIND /%s/test_script HTTP/1.1
   ... Authorization: Basic %s:%s
-  ... """ % (folder_name, username, password), handle_errors=False)
+  ... """ % (folder_name, username, password), handle_errors=True)
   HTTP/1.1 207 Multi-Status...
 
   >>> print http(r"""
   ... GET /%s/test_script/manage_DAVget HTTP/1.1
   ... Authorization: Basic %s:%s
-  ... """ % (folder_name, username, password), handle_errors=False)
+  ... """ % (folder_name, username, password), handle_errors=True)
   HTTP/1.1 200 OK...
 
 And a XML-RPC Request. Again, Anonymous user should be challenged with
@@ -130,7 +130,7 @@
   ... <methodCall>
   ... <methodName>test_script</methodName>
   ... </methodCall>
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...
 
 And with valid credentials the reqeuest should succeed:
@@ -143,7 +143,7 @@
   ... <methodCall>
   ... <methodName>test_script</methodName>
   ... </methodCall>
-  ... """ % (folder_name, username, password), handle_errors=False)
+  ... """ % (folder_name, username, password), handle_errors=True)
   HTTP/1.1 200 OK
   Content-Length: 140
   Content-Type: text/xml
@@ -180,19 +180,19 @@
 
   >>> print http(r"""
   ... GET /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 302 Moved Temporarily...
 
 And the same for a WebDAV request:
 
   >>> print http(r"""
   ... PROPFIND /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 302 Moved Temporarily...
 
   >>> print http(r"""
   ... GET /%s/test_script/manage_DAVget HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 302 Moved Temporarily...
 
 And for a XML-RPC request:
@@ -204,7 +204,7 @@
   ... <methodCall>
   ... <methodName>test_script</methodName>
   ... </methodCall>
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 302 Moved Temporarily...
 
 However, not all WebDAV and XML-RPC clients understand the
@@ -240,19 +240,19 @@
 
   >>> print http(r"""
   ... GET /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 302 Moved Temporarily...
 
 A WebDAV request should result in a 401 response status:
 
   >>> print http(r"""
   ... PROPFIND /%s/test_script HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...
 
   >>> print http(r"""
   ... GET /%s/test_script/manage_DAVget HTTP/1.1
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...
 
 And a XML-RPC request should also result in a 401 response status:
@@ -264,5 +264,5 @@
   ... <methodCall>
   ... <methodName>test_script</methodName>
   ... </methodCall>
-  ... """ % (folder_name), handle_errors=False)
+  ... """ % (folder_name), handle_errors=True)
   HTTP/1.1 401 Unauthorized...



More information about the Zope-CVS mailing list