[Zope3-checkins]
SVN: Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/
Fixed ftest failures. Yipee.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Feb 10 16:56:33 EST 2005
Log message for revision 29111:
Fixed ftest failures. Yipee.
Changed:
U Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/group_searching_with_empty_string.txt
U Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/groupfolder.txt
U Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/principalfolder.txt
U Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/special-groups.txt
-=-
Modified: Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/group_searching_with_empty_string.txt
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/group_searching_with_empty_string.txt 2005-02-10 21:49:49 UTC (rev 29110)
+++ Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/group_searching_with_empty_string.txt 2005-02-10 21:56:33 UTC (rev 29111)
@@ -24,14 +24,18 @@
...
...
... -----------------------------8474411127918531132143183931
- ... Content-Disposition: form-data; name="field.interface"
+ ... Content-Disposition: form-data; name="field.provided"
...
... zope.app.security.interfaces.IAuthentication
... -----------------------------8474411127918531132143183931
- ... Content-Disposition: form-data; name="field.interface-empty-marker"
+ ... Content-Disposition: form-data; name="field.provided-empty-marker"
...
... 1
... -----------------------------8474411127918531132143183931
+ ... Content-Disposition: form-data; name="field.status"
+ ...
+ ... Active
+ ... -----------------------------8474411127918531132143183931
... Content-Disposition: form-data; name="field.permission"
...
...
@@ -52,17 +56,16 @@
Next, we'll add the group folder:
>>> print http(r"""
- ... POST /++etc++site/@@contents.html HTTP/1.1
+ ... POST /++etc++site/SiteManagement/index.html HTTP/1.1
... Authorization: Basic mgr:mgrpw
... Content-Type: application/x-www-form-urlencoded
- ... Referer: http://localhost:8081/++etc++site/@@contents.html
...
- ... container_add_button=Add&single_new_value=tools&single_type_name=BrowserAdd__zope.app.site.folder.SiteManagementFolder""")
- HTTP/1.1 303 See Other
+ ... activeTool=IPrincipalSearchPlugin""")
+ HTTP/1.1 200 Ok
...
>>> print http(r"""
- ... POST /++etc++site/AddIPrincipalSearchPluginTool/AddGroupFolder.html%3D HTTP/1.1
+ ... POST /++etc++site/SiteManagement/AddGroupFolder.html= HTTP/1.1
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------1160081710811409419323271465
... Referer: http://localhost:8081/++etc++site/AddIPrincipalSearchPluginTool/AddGroupFolder.html=
Modified: Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/groupfolder.txt
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/groupfolder.txt 2005-02-10 21:49:49 UTC (rev 29110)
+++ Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/groupfolder.txt 2005-02-10 21:56:33 UTC (rev 29111)
@@ -15,23 +15,20 @@
First, we'll create a principal folder:
- (The first request is a bit weird. It is part of the current
- tools UI. It arranges for a tools site-management folder to be
- created. We really need to rethink how we manage TTW utilities.)
-
>>> print http(r"""
- ... GET /++etc++site/AddISearchableAuthenticationPluginTool HTTP/1.1
+ ... POST /++etc++site/SiteManagement/index.html HTTP/1.1
... Authorization: Basic mgr:mgrpw
- ... Referer: http://localhost:8081/++etc++site/@@manageISearchableAuthenticationPluginTool.html
- ... """)
+ ... Content-Type: application/x-www-form-urlencoded
+ ...
+ ... activeTool=ISearchableAuthenticationPlugin""")
HTTP/1.1 200 Ok
...
>>> print http(r"""
- ... POST /++etc++site/AddISearchableAuthenticationPluginTool/AddPrincipalFolder.html%3D HTTP/1.1
+ ... POST /++etc++site/SiteManagement/AddPrincipalFolder.html=users HTTP/1.1
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------190685539214643056941988788830
- ... Referer: http://localhost:8081/++etc++site/AddISearchableAuthenticationPluginTool/AddPrincipalFolder.html=
+ ... Referer: http://localhost:8081/++etc++site/SiteManagement/AddPrincipalFolder.html=
...
... -----------------------------190685539214643056941988788830
... Content-Disposition: form-data; name="field.prefix"
@@ -49,8 +46,6 @@
... """)
HTTP/1.1 303 See Other
...
- Location: ../@@manageISearchableAuthenticationPluginTool.html
- ...
Next we'l add some users:
@@ -309,8 +304,17 @@
Next, we'll add out groups folder:
>>> print http(r"""
- ... POST /++etc++site/AddIPrincipalSearchPluginTool/AddGroupFolder.html%3D HTTP/1.1
+ ... POST /++etc++site/SiteManagement/index.html HTTP/1.1
... Authorization: Basic mgr:mgrpw
+ ... Content-Type: application/x-www-form-urlencoded
+ ...
+ ... activeTool=IPrincipalSearchPlugin""")
+ HTTP/1.1 200 Ok
+ ...
+
+ >>> print http(r"""
+ ... POST /++etc++site/SiteManagement/AddGroupFolder.html= HTTP/1.1
+ ... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------18984415031531709165482618952
...
... -----------------------------18984415031531709165482618952
@@ -329,8 +333,6 @@
... """)
HTTP/1.1 303 See Other
...
- Location: ../@@manageIPrincipalSearchPluginTool.html
- ...
Now, before we can define any groups, we have to add and register a
pluggable authentication utility:
@@ -356,11 +358,11 @@
...
...
... -----------------------------1649392783947785437368129046
- ... Content-Disposition: form-data; name="field.interface"
+ ... Content-Disposition: form-data; name="field.provided"
...
... zope.app.security.interfaces.IAuthentication
... -----------------------------1649392783947785437368129046
- ... Content-Disposition: form-data; name="field.interface-empty-marker"
+ ... Content-Disposition: form-data; name="field.provided-empty-marker"
...
... 1
... -----------------------------1649392783947785437368129046
@@ -368,6 +370,10 @@
...
...
... -----------------------------1649392783947785437368129046
+ ... Content-Disposition: form-data; name="field.status"
+ ...
+ ... Active
+ ... -----------------------------1649392783947785437368129046
... Content-Disposition: form-data; name="field.permission-empty-marker"
...
... 1
Modified: Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/principalfolder.txt
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/principalfolder.txt 2005-02-10 21:49:49 UTC (rev 29110)
+++ Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/principalfolder.txt 2005-02-10 21:56:33 UTC (rev 29111)
@@ -18,20 +18,17 @@
To allow Bob to log in, we'll start by adding a principal folder:
-(The following request is a bit weird. It is part of the current
- tools UI. It arranges for a tools site-management folder to be
- created. We really need to rethink how we manage TTW utilities.)
-
>>> print http(r"""
- ... GET /++etc++site/AddISearchableAuthenticationPluginTool HTTP/1.1
+ ... POST /++etc++site/SiteManagement/index.html HTTP/1.1
... Authorization: Basic mgr:mgrpw
- ... Referer: http://localhost:8081/++etc++site/@@manageISearchableAuthenticationPluginTool.html
- ... """)
+ ... Content-Type: application/x-www-form-urlencoded
+ ...
+ ... activeTool=ISearchableAuthenticationPlugin""")
HTTP/1.1 200 Ok
...
>>> print http(r"""
- ... POST /++etc++site/AddISearchableAuthenticationPluginTool/AddPrincipalFolder.html%3D HTTP/1.1
+ ... POST /++etc++site/SiteManagement/AddPrincipalFolder.html= HTTP/1.1
... Authorization: Basic mgr:mgrpw
... Content-Length: 434
... Content-Type: multipart/form-data; boundary=---------------------------190685539214643056941988788830
@@ -53,8 +50,6 @@
... """)
HTTP/1.1 303 See Other
...
- Location: ../@@manageISearchableAuthenticationPluginTool.html
- ...
We specify a prefix, `users.`. This is used to make sure that ids
used by this plugin don't conflict with ids of other plugins. We also
@@ -138,14 +133,18 @@
...
...
... -----------------------------1649392783947785437368129046
- ... Content-Disposition: form-data; name="field.interface"
+ ... Content-Disposition: form-data; name="field.provided"
...
... zope.app.security.interfaces.IAuthentication
... -----------------------------1649392783947785437368129046
- ... Content-Disposition: form-data; name="field.interface-empty-marker"
+ ... Content-Disposition: form-data; name="field.provided-empty-marker"
...
... 1
... -----------------------------1649392783947785437368129046
+ ... Content-Disposition: form-data; name="field.status"
+ ...
+ ... Active
+ ... -----------------------------1649392783947785437368129046
... Content-Disposition: form-data; name="field.permission"
...
...
Modified: Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/special-groups.txt
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/special-groups.txt 2005-02-10 21:49:49 UTC (rev 29110)
+++ Zope3/branches/srichter-blow-services/src/zope/app/authentication/browser/special-groups.txt 2005-02-10 21:56:33 UTC (rev 29111)
@@ -21,19 +21,19 @@
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------51955270618919134971413296540
...
- ... -----------------------------51955270618919134971413296540
- ... Content-Disposition: form-data; name="field.prefix"
- ...
- ... users.
- ... -----------------------------51955270618919134971413296540
- ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
- ...
- ... Add
- ... -----------------------------51955270618919134971413296540
- ... Content-Disposition: form-data; name="add_input_name"
- ...
- ...
- ... -----------------------------51955270618919134971413296540--
+ ... -----------------------------51955270618919134971413296540
+ ... Content-Disposition: form-data; name="field.prefix"
+ ...
+ ... users.
+ ... -----------------------------51955270618919134971413296540
+ ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
+ ...
+ ... Add
+ ... -----------------------------51955270618919134971413296540
+ ... Content-Disposition: form-data; name="add_input_name"
+ ...
+ ...
+ ... -----------------------------51955270618919134971413296540--
... """)
HTTP/1.1 303 See Other
...
@@ -45,31 +45,35 @@
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------1211945862063657304996683149
...
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="field.name"
- ...
- ... users
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="field.interface"
- ...
- ... zope.app.authentication.interfaces.ISearchableAuthenticationPlugin
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="field.interface-empty-marker"
- ...
- ... 1
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="field.permission"
- ...
- ...
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="field.permission-empty-marker"
- ...
- ... 1
- ... -----------------------------1211945862063657304996683149
- ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
- ...
- ... Add
- ... -----------------------------1211945862063657304996683149--
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.name"
+ ...
+ ... users
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.provided"
+ ...
+ ... zope.app.authentication.interfaces.ISearchableAuthenticationPlugin
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.provided-empty-marker"
+ ...
+ ... 1
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.status"
+ ...
+ ... Active
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.permission"
+ ...
+ ...
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="field.permission-empty-marker"
+ ...
+ ... 1
+ ... -----------------------------1211945862063657304996683149
+ ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
+ ...
+ ... Add
+ ... -----------------------------1211945862063657304996683149--
... """)
HTTP/1.1 303 See Other
...
@@ -81,31 +85,31 @@
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------10033016405103631412002637985
...
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="field.login"
- ...
- ... bob
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="field.password"
- ...
- ... 123
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="field.title"
- ...
- ... Bob
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="field.description"
- ...
- ...
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
- ...
- ... Add
- ... -----------------------------10033016405103631412002637985
- ... Content-Disposition: form-data; name="add_input_name"
- ...
- ...
- ... -----------------------------10033016405103631412002637985--
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="field.login"
+ ...
+ ... bob
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="field.password"
+ ...
+ ... 123
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="field.title"
+ ...
+ ... Bob
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="field.description"
+ ...
+ ...
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
+ ...
+ ... Add
+ ... -----------------------------10033016405103631412002637985
+ ... Content-Disposition: form-data; name="add_input_name"
+ ...
+ ...
+ ... -----------------------------10033016405103631412002637985--
... """)
HTTP/1.1 303 See Other
...
@@ -129,31 +133,35 @@
... Content-Type: multipart/form-data; boundary=---------------------------2567744622114531019698320091
... Referer: http://localhost:8081/++etc++site/default/LocalPluggableAuthentication/addRegistration.html
...
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="field.name"
- ...
- ...
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="field.interface"
- ...
- ... zope.app.security.interfaces.IAuthentication
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="field.interface-empty-marker"
- ...
- ... 1
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="field.permission"
- ...
- ...
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="field.permission-empty-marker"
- ...
- ... 1
- ... -----------------------------2567744622114531019698320091
- ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
- ...
- ... Add
- ... -----------------------------2567744622114531019698320091--
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.name"
+ ...
+ ...
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.provided"
+ ...
+ ... zope.app.security.interfaces.IAuthentication
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.provided-empty-marker"
+ ...
+ ... 1
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.status"
+ ...
+ ... Active
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.permission"
+ ...
+ ...
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="field.permission-empty-marker"
+ ...
+ ... 1
+ ... -----------------------------2567744622114531019698320091
+ ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
+ ...
+ ... Add
+ ... -----------------------------2567744622114531019698320091--
... """)
HTTP/1.1 303 See Other
...
@@ -165,79 +173,79 @@
... Authorization: Basic mgr:mgrpw
... Content-Type: multipart/form-data; boundary=---------------------------12424310211503201098946683515
...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.extractors.to"
- ...
- ... HTTP Basic
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.extractors-empty-marker"
- ...
- ...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.authenticators.to"
- ...
- ... users
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.authenticators-empty-marker"
- ...
- ...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.challengers.to"
- ...
- ... No Challenge if Authenticated
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.challengers.to"
- ...
- ... Zope Realm HTTP Basic
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.challengers-empty-marker"
- ...
- ...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.factories.to"
- ...
- ... Default
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.factories-empty-marker"
- ...
- ...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.searchers.to"
- ...
- ... users
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.searchers-empty-marker"
- ...
- ...
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
- ...
- ... Change
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.extractors"
- ...
- ... HTTP Basic
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.authenticators"
- ...
- ... users
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.challengers"
- ...
- ... No Challenge if Authenticated
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.challengers"
- ...
- ... Zope Realm HTTP Basic
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.factories"
- ...
- ... Default
- ... -----------------------------12424310211503201098946683515
- ... Content-Disposition: form-data; name="field.searchers"
- ...
- ... users
- ... -----------------------------12424310211503201098946683515--
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.extractors.to"
+ ...
+ ... HTTP Basic
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.extractors-empty-marker"
+ ...
+ ...
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.authenticators.to"
+ ...
+ ... users
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.authenticators-empty-marker"
+ ...
+ ...
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.challengers.to"
+ ...
+ ... No Challenge if Authenticated
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.challengers.to"
+ ...
+ ... Zope Realm HTTP Basic
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.challengers-empty-marker"
+ ...
+ ...
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.factories.to"
+ ...
+ ... Default
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.factories-empty-marker"
+ ...
+ ...
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.searchers.to"
+ ...
+ ... users
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.searchers-empty-marker"
+ ...
+ ...
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="UPDATE_SUBMIT"
+ ...
+ ... Change
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.extractors"
+ ...
+ ... HTTP Basic
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.authenticators"
+ ...
+ ... users
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.challengers"
+ ...
+ ... No Challenge if Authenticated
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.challengers"
+ ...
+ ... Zope Realm HTTP Basic
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.factories"
+ ...
+ ... Default
+ ... -----------------------------12424310211503201098946683515
+ ... Content-Disposition: form-data; name="field.searchers"
+ ...
+ ... users
+ ... -----------------------------12424310211503201098946683515--
... """)
HTTP/1.1 200 Ok
...
More information about the Zope3-Checkins
mailing list