#239 — Products.remember breaks standard Tests (as documented) in AGX 2.4.1
by
Ian F. Hood
—
last modified
Mar 22, 2010 11:05 PM
| State | Unconfirmed |
|---|---|
| Version: |
—
|
| Area | UML tool support |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Ian F. Hood |
| Submitted on | Mar 22, 2010 |
| Responsible |
—
|
| Target release: |
—
|
Attempting to add Products.remember to an AGX model that has even the most basic test frame will cause the following error(s):
Set up Products.PloneTestCase.layer.PloneSite in 15.333 seconds.
Running:
.
Error in test test_skins (Products.RememberTests.tests.testSetup.testSetup)
Traceback (most recent call last):
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/profiler.py", line 86, in __call__
self.setUp()
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 61, in setUp
self._setup()
File "/usr/local/Plone/buildout-cache/eggs/Products.PloneTestCase-0.9.8b4-py2.4.egg/Products/PloneTestCase/PloneTestCase.py", line 77, in _setup
PortalTestCase._setup(self)
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 77, in _setup
self._setupUser()
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 89, in _setupUser
uf.userFolderAddUser(user_name, user_password, ['Member'], [])
File "<string>", line 3, in _facade
File "/usr/local/Plone/buildout-cache/eggs/plone.protect-1.1-py2.4.egg/plone/protect/utils.py", line 43, in _curried
return callable(*args, **kw)
File "<string>", line 3, in _facade
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/AccessControl/requestmethod.py", line 64, in _curried
return callable(*args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.PlonePAS-3.7-py2.4.egg/Products/PlonePAS/pas.py", line 126, in userFolderAddUser
self._doAddUser(login, password, roles, domains, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.PlonePAS-3.7-py2.4.egg/Products/PlonePAS/pas.py", line 49, in _doAddUser
retval = _old_doAddUser(self, login, password, roles, domains)
File "/usr/local/Plone/buildout-cache/eggs/Products.PluggableAuthService-1.6-py2.4.egg/Products/PluggableAuthService/PluggableAuthService.py", line 941, in _doAddUser
if useradder.doAddUser( login, password ):
File "/mnt/Plone/buildout-cache/eggs/Products.membrane-1.1b5-py2.4.egg/Products/membrane/plugins/usermanager.py", line 283, in doAddUser
adder.addUser(login, password)
File "/mnt/Plone/buildout-cache/eggs/Products.remember-1.1b3-py2.4.egg/Products/remember/utilities.py", line 27, in addUser
mdtool.invokeFactory(mtype, login, password=password)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/PortalFolder.py", line 315, in invokeFactory
return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/TypesTool.py", line 716, in constructContent
ob = info.constructInstance(container, id, *args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/TypesTool.py", line 274, in constructInstance
raise AccessControl_Unauthorized('Cannot create %s' % self.getId())
Unauthorized: Cannot create Member
.
Error in test test_tools (Products.RememberTests.tests.testSetup.testSetup)
Traceback (most recent call last):
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/profiler.py", line 86, in __call__
...
...
...
Set up Products.PloneTestCase.layer.PloneSite in 15.333 seconds.
Running:
.
Error in test test_skins (Products.RememberTests.tests.testSetup.testSetup)
Traceback (most recent call last):
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/profiler.py", line 86, in __call__
self.setUp()
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 61, in setUp
self._setup()
File "/usr/local/Plone/buildout-cache/eggs/Products.PloneTestCase-0.9.8b4-py2.4.egg/Products/PloneTestCase/PloneTestCase.py", line 77, in _setup
PortalTestCase._setup(self)
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 77, in _setup
self._setupUser()
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/PortalTestCase.py", line 89, in _setupUser
uf.userFolderAddUser(user_name, user_password, ['Member'], [])
File "<string>", line 3, in _facade
File "/usr/local/Plone/buildout-cache/eggs/plone.protect-1.1-py2.4.egg/plone/protect/utils.py", line 43, in _curried
return callable(*args, **kw)
File "<string>", line 3, in _facade
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/AccessControl/requestmethod.py", line 64, in _curried
return callable(*args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.PlonePAS-3.7-py2.4.egg/Products/PlonePAS/pas.py", line 126, in userFolderAddUser
self._doAddUser(login, password, roles, domains, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.PlonePAS-3.7-py2.4.egg/Products/PlonePAS/pas.py", line 49, in _doAddUser
retval = _old_doAddUser(self, login, password, roles, domains)
File "/usr/local/Plone/buildout-cache/eggs/Products.PluggableAuthService-1.6-py2.4.egg/Products/PluggableAuthService/PluggableAuthService.py", line 941, in _doAddUser
if useradder.doAddUser( login, password ):
File "/mnt/Plone/buildout-cache/eggs/Products.membrane-1.1b5-py2.4.egg/Products/membrane/plugins/usermanager.py", line 283, in doAddUser
adder.addUser(login, password)
File "/mnt/Plone/buildout-cache/eggs/Products.remember-1.1b3-py2.4.egg/Products/remember/utilities.py", line 27, in addUser
mdtool.invokeFactory(mtype, login, password=password)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/PortalFolder.py", line 315, in invokeFactory
return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/TypesTool.py", line 716, in constructContent
ob = info.constructInstance(container, id, *args, **kw)
File "/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/TypesTool.py", line 274, in constructInstance
raise AccessControl_Unauthorized('Cannot create %s' % self.getId())
Unauthorized: Cannot create Member
.
Error in test test_tools (Products.RememberTests.tests.testSetup.testSetup)
Traceback (most recent call last):
File "/mnt/Plone/Zope-2.10.7-final-py2.4/lib/python/Testing/ZopeTestCase/profiler.py", line 86, in __call__
...
...
...
- Steps to reproduce:
- New project (argoUML 0.28 with profile)
Add tests package:
- Add <plone_testcase> testPlone
- Add <setup_testcase> testSetup
- Add generalization from testSetup to testPlone
Build w/AGX 2.4.1 and run tests =
Ran 5 tests with 0 failures and 0 errors ...
On file system:
- Add AppConfig.py with:
DEPENDENCIES = []
DEPENDENCIES.append('membrane')
DEPENDENCIES.append('remember')
Build w/AGX 2.4.1 and run tests =
Ran 5 tests with 0 failures and 5 errors ...
** all 5 errors are same as indicated above.
No responses can be added.
If you can, please log in before submitting a reaction.
