[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ftests/doctest.txt Changed to use non-base64-encoded credentials. This is much easier

Jim Fulton jim at zope.com
Tue Oct 19 15:16:07 EDT 2004


Log message for revision 28217:
  Changed to use non-base64-encoded credentials.  This is much easier
  than recording as a special user or copying base64 tokens.
  

Changed:
  U   Zope3/trunk/src/zope/app/ftests/doctest.txt

-=-
Modified: Zope3/trunk/src/zope/app/ftests/doctest.txt
===================================================================
--- Zope3/trunk/src/zope/app/ftests/doctest.txt	2004-10-19 19:16:04 UTC (rev 28216)
+++ Zope3/trunk/src/zope/app/ftests/doctest.txt	2004-10-19 19:16:07 UTC (rev 28217)
@@ -39,7 +39,7 @@
 
   >>> print http(r"""
   ... GET /@@contents.html HTTP/1.1
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... """)
   HTTP/1.1 200 Ok
   Content-Length: ...
@@ -48,8 +48,7 @@
   <!DOCTYPE html PUBLIC ...
 
 Important note: you must use the user named "mgr" with a password
-"mgrpw". This means that when you record requests with tcpwatch, you
-need to use that user login name and password.
+"mgrpw". 
 
 And we get a normal output.
 
@@ -58,7 +57,7 @@
 
   >>> print http(r"""
   ... GET /++etc++site/@@manage HTTP/1.1
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... Referer: http://localhost:8081/
   ... """)
   HTTP/1.1 303 See Other
@@ -73,7 +72,7 @@
 
   >>> print http(r"""
   ... GET /++etc++site/@@manage HTTP/1.0
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... Referer: http://localhost:8081/
   ... """)
   HTTP/1.0 302 Moved Temporarily
@@ -86,7 +85,7 @@
 
   >>> print http(r"""
   ... GET /++etc++site/@@tasks.html HTTP/1.1
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... Referer: http://localhost:8081/
   ... """)
   HTTP/1.1 200 Ok
@@ -99,7 +98,7 @@
 
   >>> print http(r"""
   ... GET / HTTP/1.1
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... """)
   HTTP/1.1 200 Ok
   Content-Length: ...
@@ -123,7 +122,7 @@
 
   >>> print http(r"""
   ... POST /@@contents.html HTTP/1.1
-  ... Authorization: Basic bWdyOm1ncnB3
+  ... Authorization: Basic mgr:mgrpw
   ... Content-Length: 73
   ... Content-Type: application/x-www-form-urlencoded
   ... 



More information about the Zope3-Checkins mailing list