[Testbot] Plone 5.0 - Python 2.7 - Build # 2378 - Regression! - failure(s)

jenkins at plone.org jenkins at plone.org
Thu Apr 24 10:09:42 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 2378 - Failure!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/2378/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.app.openid
Branch: refs/heads/master
Date: 2014-04-24T10:43:57+02:00
Author: Simon Delcourt (sdelcourt) <delcourt.simon at gmail.com>
Commit: https://github.com/plone/plone.app.openid/commit/4c18e5d6a4f846b2cebad0a5eaf462e8a8cacf30

replace PloneTestCase by a plone.app.testing layer

Files changed:
A plone/app/openid/testing.py
D plone/app/openid/tests/base.py

diff --git a/plone/app/openid/testing.py b/plone/app/openid/testing.py
new file mode 100644
index 0000000..9eae366
--- /dev/null
+++ b/plone/app/openid/testing.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+
+from zope.configuration import xmlconfig
+
+from plone.testing import z2
+
+from plone.app.testing import PloneSandboxLayer
+from plone.app.testing.layers import IntegrationTesting
+
+
+class PloneAppOpenidLayer(PloneSandboxLayer):
+
+    def setUpZope(self, app, configurationContext):
+        import plone.openid
+        self.loadZCML(package=plone.openid)
+        z2.installProduct(app, 'plone.openid')
+        z2.installProduct(app, 'plone.app.openid')
+        import plone.app.openid
+        xmlconfig.file(
+            'configure.zcml',
+            plone.app.openid,
+            context=configurationContext)
+
+    def tearDownZope(self, app):
+        z2.uninstallProduct(app, 'plone.app.openid')
+
+PLONEAPPOPENID_FIXTURE = PloneAppOpenidLayer()
+
+PLONEAPPOPENID_INTEGRATION_TESTING = IntegrationTesting(
+    bases=(PLONEAPPOPENID_FIXTURE,),
+    name="PloneAppCollectionLayer:Integration")
diff --git a/plone/app/openid/tests/base.py b/plone/app/openid/tests/base.py
deleted file mode 100644
index 6ac6168..0000000
--- a/plone/app/openid/tests/base.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from OFS.Application import install_package
-import plone.openid
-from Products.PloneTestCase import PloneTestCase
-PloneTestCase.setupPloneSite()
-
-class OpenIdTestCase(PloneTestCase.PloneTestCase):
-    def afterSetUp(self):
-        # Since Zope 2.10.4 we need to install our package manually
-        install_package(self.app, plone.openid, plone.openid.initialize)
-
-    @property
-    def pas(self):
-        return self.portal.acl_users
-
-    @property
-    def pas_info(self):
-        return self.pas.restrictedTraverse("@@pas_info")
-
-
-class OpenIdFunctionalTestCase(PloneTestCase.Functional, OpenIdTestCase):
-    pass


Repository: plone.app.openid
Branch: refs/heads/master
Date: 2014-04-24T10:45:28+02:00
Author: Simon Delcourt (sdelcourt) <delcourt.simon at gmail.com>
Commit: https://github.com/plone/plone.app.openid/commit/d3fe5562db7aba2913af23b8673575c95fd039d4

adapt test setup

Files changed:
M plone/app/openid/tests/test_view.py

diff --git a/plone/app/openid/tests/test_view.py b/plone/app/openid/tests/test_view.py
index cab7f60..c7c63b4 100644
--- a/plone/app/openid/tests/test_view.py
+++ b/plone/app/openid/tests/test_view.py
@@ -1,36 +1,52 @@
-import unittest
-from plone.app.openid.tests.base import OpenIdTestCase
-from Products.PluggableAuthService.interfaces.plugins \
-        import IExtractionPlugin, ILoginPasswordExtractionPlugin
+from Products.PluggableAuthService.interfaces.plugins import IExtractionPlugin
+from Products.PluggableAuthService.interfaces.plugins import ILoginPasswordExtractionPlugin
+
+from plone.app.openid.testing import PLONEAPPOPENID_INTEGRATION_TESTING
+
+import unittest2 as unittest
+
+
+class TestOpenIdView(unittest.TestCase):
+
+    layer = PLONEAPPOPENID_INTEGRATION_TESTING
+
+    def setUp(self):
+        self.portal = self.layer['portal']
+
+    @property
+    def pas(self):
+        return self.portal.acl_users
+
+    @property
+    def pas_info(self):
+        return self.pas.restrictedTraverse("@@pas_info")
 
-class TestOpenIdView(OpenIdTestCase):
     def test_DefaultConfig(self):
-        pas_info=self.pas_info
+        pas_info = self.pas_info
         self.assertEquals(pas_info.hasOpenIDExtractor(), False)
         self.assertEquals(pas_info.hasLoginPasswordExtractor(), True)
 
     def test_OpenIdInstalled(self):
         self.portal.portal_setup.runAllImportStepsFromProfile(
             'profile-plone.app.openid:default')
-        pas_info=self.pas_info
+        pas_info = self.pas_info
         self.assertEquals(pas_info.hasOpenIDExtractor(), True)
         self.assertEquals(pas_info.hasLoginPasswordExtractor(), True)
 
     def testOnlyOpenIdInstalled(self):
-        plugins=self.pas.plugins.listPlugins(IExtractionPlugin)
+        plugins = self.pas.plugins.listPlugins(IExtractionPlugin)
         for (id, plugin) in plugins:
             if ILoginPasswordExtractionPlugin.providedBy(plugin):
                 plugin.manage_activateInterfaces(interfaces=())
         self.portal.portal_setup.runAllImportStepsFromProfile(
             'profile-plone.app.openid:default')
 
-        pas_info=self.pas_info
+        pas_info = self.pas_info
         self.assertEquals(pas_info.hasOpenIDExtractor(), True)
         self.assertEquals(pas_info.hasLoginPasswordExtractor(), False)
 
 
 def test_suite():
-    suite=unittest.TestSuite()
+    suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(TestOpenIdView))
     return suite
-




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 4859 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140424/3be4e92b/attachment-0001.obj>


More information about the Testbot mailing list