[Testbot] Plone 5.2 - Python 2.7 - Build # 1369 - Aborted!

jenkins at plone.org jenkins at plone.org
Tue Jul 17 11:33:54 UTC 2018


Plone 5.2 - Python 2.7 - Build # 1369 - Aborted:

Check console output at https://jenkins.plone.org/job/plone-5.2-python-2.7/1369/ to view the results.

Changes:

[Jens W. Klein] [fc] Repository: plone.indexer







Test Results:

4 tests failed.
FAILED:  plone.app.testing.helpers.rst

Error Message:
Failed doctest test for helpers.rst

Stack Trace:
Failed doctest test for helpers.rst
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 139, in helpers.rst
Failed example:
    runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[12]>", line 1, in <module>
        runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 151, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 154, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[16]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 260, in ploneSite
        login(portal, TEST_USER_NAME)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 30, in login
        z2.login(portal['acl_users'], userName)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 183, in login
        user = userFolder.getUser(userName)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 219, in getUser
        return self._findUser(plugins, user_info['id'], user_info['login'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 737, in _findUser
        data = propfinder.getPropertiesForUser(user, request)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 160, in getPropertiesForUser
        defaults = self._getDefaultValues(isGroup)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 122, in _getDefaultValues
        mdtool = getToolByName(self, datatool, None)
      File "<string>", line 13, in check_getToolByName
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/utils.py", line 102, in getToolByName
        utility = getUtility(tool_interface)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 166, in getUtility
        utility = queryUtility(interface, name, context=context)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 162, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print is_installed(portal, 'plone.app.testing')
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[18]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 174, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[23]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 807, in testSetUp
        app = addRequestContainer(Zope2.app(), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 184, in helpers.rst
Failed example:
    portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[27]>", line 1, in <module>
        portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 186, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[28]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 189, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 191, in helpers.rst
Failed example:
    getSecurityManager().getUser().getId() == TEST_USER_ID
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 194, in helpers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[32]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 195, in helpers.rst
Failed example:
    repr(getSecurityManager()) != sm_repr
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 197, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[34]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 204, in helpers.rst
Failed example:
    helpers.login(portal, TEST_USER_NAME)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[37]>", line 1, in <module>
        helpers.login(portal, TEST_USER_NAME)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 205, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 209, in helpers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[40]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 214, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[41]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 223, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[46]>", line 1, in <module>
        queryUtility(Interface, name="dummy1")
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 226, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print is_installed(portal, 'plone.app.testing')
        'folder1' in portal.objectIds()
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[47]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 240, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (HELPER_DEMOS_INTEGRATION_TESTING, HELPER_DEMOS_FIXTURE,)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.HelperDemos:Integration in ... seconds.
    Tear down HelperDemos in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 244, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1") is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[49]>", line 1, in <module>
        queryUtility(Interface, name="dummy1") is None
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 247, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print is_installed(portal, 'plone.app.testing')
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[50]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 257, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 352, in helpers.rst
Failed example:
    runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[59]>", line 1, in <module>
        runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 361, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 364, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[61]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 260, in ploneSite
        login(portal, TEST_USER_NAME)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 30, in login
        z2.login(portal['acl_users'], userName)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 183, in login
        user = userFolder.getUser(userName)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 219, in getUser
        return self._findUser(plugins, user_info['id'], user_info['login'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 737, in _findUser
        data = propfinder.getPropertiesForUser(user, request)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 160, in getPropertiesForUser
        defaults = self._getDefaultValues(isGroup)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 122, in _getDefaultValues
        mdtool = getToolByName(self, datatool, None)
      File "<string>", line 13, in check_getToolByName
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/utils.py", line 102, in getToolByName
        utility = getUtility(tool_interface)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 166, in getUtility
        utility = queryUtility(interface, name, context=context)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 368, in helpers.rst
Failed example:
    someGlobal['test']
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[62]>", line 1, in <module>
        someGlobal['test']
    KeyError: 'test'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 377, in helpers.rst
Failed example:
    'plone.app.testing:dummy1' in _profile_registry.listProfiles()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 381, in helpers.rst
Failed example:
    'import1' in _import_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 385, in helpers.rst
Failed example:
    'export1' in _export_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 389, in helpers.rst
Failed example:
    'dummy_plugin1' in PluggableAuthService.MultiPlugins
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 393, in helpers.rst
Failed example:
    len(_upgrade_registry.getUpgradeStepsForProfile('plone.app.testing:default'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[76]>", line 1, in <module>
        len(_upgrade_registry.getUpgradeStepsForProfile('plone.app.testing:default'))
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/upgrade.py", line 90, in getUpgradeStepsForProfile
        self._registry[profile_id] = OOBTree()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/registry.py", line 248, in __setitem__
        return sm.registerUtility(info, provided=self.interfaceClass, name=id)
      File "/home/jenkins/.buildout/eggs/zope.interface-4.5.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 241, in registerUtility
        factory)
      File "/home/jenkins/.buildout/eggs/zope.event-4.3.0-py2.7.egg/zope/event/__init__.py", line 32, in notify
        subscriber(event)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/event.py", line 27, in dispatch
        component_subscribers(event, None)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 139, in subscribers
        return sitemanager.subscribers(objects, interface)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 400, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (MY_INTEGRATION_TESTING, MY_FIXTURE)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.MyLayer:Integration in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 403, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1") is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[78]>", line 1, in <module>
        queryUtility(Interface, name="dummy1") is None
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 406, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[79]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 413, in helpers.rst
Failed example:
    len(_profile_registry.listProfiles()) == numProfiles - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 418, in helpers.rst
Failed example:
    len(_import_step_registry.listSteps()) == numImportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 423, in helpers.rst
Failed example:
    len(_export_step_registry.listSteps()) == numExportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 428, in helpers.rst
Failed example:
    len(_upgrade_registry.keys()) == numUpgrades - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 439, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.


  File "/srv/python2.7/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/srv/python2.7/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.testing.layers.rst

Error Message:
Failed doctest test for layers.rst

Stack Trace:
Failed doctest test for layers.rst
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 347, in layers.rst
Failed example:
    layers.PLONE_ZSERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[95]>", line 1, in <module>
        layers.PLONE_ZSERVER.testTearDown()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 288, in testTearDown
        super(PloneTestLifecycle, self).testTearDown()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 950, in testTearDown
        self['zodbDB'].close()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 651, in close
        @self._connectionMap
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 518, in _connectionMap
        self.pool.map(f)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 213, in map
        self.all.map(f)
      File "/home/jenkins/.buildout/eggs/transaction-2.2.1-py2.7.egg/transaction/weakset.py", line 62, in map
        f(elt)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 659, in _
        conn._release_resources()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 948, in _release_resources
        c.close(False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 304, in close
        self.transaction_manager.unregisterSynch(self)
      File "/home/jenkins/.buildout/eggs/transaction-2.2.1-py2.7.egg/transaction/_manager.py", line 106, in unregisterSynch
        self._synchs.remove(synch)
      File "/home/jenkins/.buildout/eggs/transaction-2.2.1-py2.7.egg/transaction/weakset.py", line 51, in remove
        del self.data[id(obj)]
      File "/srv/python2.7/lib/python2.7/weakref.py", line 92, in __delitem__
        del self.data[key]
    KeyError: 140109472485456
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 362, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[103]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Zope2/__init__.py", line 55, in app
        return bobo_application(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/App/ZApplication.py", line 74, in __call__
        connection = db.open()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 736, in newTransaction
        self._storage.sync(sync)
    AttributeError: 'NoneType' object has no attribute 'sync'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 368, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[104]>", line 1, in <module>
        runner.tear_down_unneeded(options, [], setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 742, in tear_down_unneeded
        l.tearDown()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 119, in tearDown
        with z2.zopeApp() as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/Zope2/__init__.py", line 55, in app
        return bobo_application(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/App/ZApplication.py", line 74, in __call__
        connection = db.open()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 736, in newTransaction
        self._storage.sync(sync)
    AttributeError: 'NoneType' object has no attribute 'sync'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 394, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[110]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 405, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 410, in layers.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 420, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[120]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 282, in testSetUp
        self.setUpEnvironment(portal)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 300, in setUpEnvironment
        portal.setupCurrentSkin(portal.REQUEST)
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/Skinnable.py", line 159, in setupCurrentSkin
        skinname = self.getSkinNameFromRequest(REQUEST)
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/Skinnable.py", line 102, in getSkinNameFromRequest
        stool = queryUtility(ISkinsTool)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 429, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[122]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 45, in setRoles
        z2.setRoles(userFolder, userId, roles)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 206, in setRoles
        userName = userFolder.getUserById(userId).getUserName()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 233, in getUserById
        return self._findUser(plugins, user_info['id'], user_info['login'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/PluggableAuthService.py", line 737, in _findUser
        data = propfinder.getPropertiesForUser(user, request)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 160, in getPropertiesForUser
        defaults = self._getDefaultValues(isGroup)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/plugins/property.py", line 122, in _getDefaultValues
        mdtool = getToolByName(self, datatool, None)
      File "<string>", line 13, in check_getToolByName
      File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.4.0b3-py2.7.egg/Products/CMFCore/utils.py", line 102, in getToolByName
        utility = getUtility(tool_interface)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 166, in getUtility
        utility = queryUtility(interface, name, context=context)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 431, in layers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[124]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
      File "/home/jenkins/.buildout/eggs/Zope-4.0b5-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        notify(ObjectWillBeAddedEvent(ob, self, id))
      File "/home/jenkins/.buildout/eggs/zope.event-4.3.0-py2.7.egg/zope/event/__init__.py", line 32, in notify
        subscriber(event)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/event.py", line 27, in dispatch
        component_subscribers(event, None)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 139, in subscribers
        return sitemanager.subscribers(objects, interface)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 443, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[129]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/srv/python2.7/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -3] Temporary failure in name resolution
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 449, in layers.rst
Failed example:
    ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[132]>", line 1, in <module>
        ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 394, in login
        resp = self.sendcmd('USER ' + user)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 250, in sendcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 452, in layers.rst
Failed example:
    ftpClient.cwd(folder_path)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[133]>", line 1, in <module>
        ftpClient.cwd(folder_path)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 574, in cwd
        return self.voidcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 255, in voidcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 455, in layers.rst
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[134]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 440, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 250, in sendcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 460, in layers.rst
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[135]>", line 1, in <module>
        ftpClient.quit()
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 603, in quit
        resp = self.voidcmd('QUIT')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 255, in voidcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 465, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[136]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testTearDown()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 322, in tearDownEnvironment
        cache = queryUtility(IRAMCache)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 172, in queryUtility
        return getSiteManager(context).queryUtility(interface, name, default)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 471, in layers.rst
Failed example:
    'portal' in layers.PLONE_FTP_SERVER
Expected:
    False
Got:
    True
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 474, in layers.rst
Failed example:
    'app' in layers.PLONE_FTP_SERVER
Expected:
    False
Got:
    True
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 477, in layers.rst
Failed example:
    'request' in layers.PLONE_FTP_SERVER
Expected:
    False
Got:
    True
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 480, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[144]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/srv/python2.7/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 795, in setstate
        self._reader.setGhostState(obj, p)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 633, in setGhostState
        state = self.getState(pickle)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/serialize.py", line 626, in getState
        return unpickler.load()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/zca.py", line 22, in loadRegistry
        raise KeyError(name)
    KeyError: (KeyError('test-stack-2',), <function loadRegistry at 0x7f6dd6ce3668>, ('test-stack-2',))
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 486, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:FTPServer in ... seconds.
    ...Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    ...Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.003 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 492, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[146]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/srv/python2.7/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -3] Temporary failure in name resolution


  File "/srv/python2.7/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/srv/python2.7/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  src.plone.testing.z2.rst

Error Message:
Failed doctest test for z2.rst

Stack Trace:
Failed doctest test for z2.rst
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 46, in z2.rst
Failed example:
    runner.setup_layer(options, z2.STARTUP, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[10]>", line 1, in <module>
        runner.setup_layer(options, z2.STARTUP, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 55, in z2.rst
Failed example:
    z2.STARTUP['zodbDB'].storage
Expected:
    Startup
Got:
    FunctionalTest
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 132, in z2.rst
Failed example:
    len(list(getSiteManager().registeredAdapters())) > 1 # in fact, > a lot
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 137, in z2.rst
Failed example:
    getVocabularyRegistry()
Expected:
    <....Zope2VocabularyRegistry object at ...>
Got:
    <zope.schema.vocabulary.VocabularyRegistry object at 0x7f6dc958b5c8>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 155, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.005 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 160, in z2.rst
Failed example:
    Zope2._began_startup
Expected:
    0
Got:
    1
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 162, in z2.rst
Failed example:
    Zope2.DB is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 164, in z2.rst
Failed example:
    Zope2.bobo_application is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 198, in z2.rst
Failed example:
    runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[38]>", line 1, in <module>
        runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 233, in z2.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <User 'user1'>
Got:
    <PropertiedUser 'user1'>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 238, in z2.rst
Failed example:
    sorted(getSecurityManager().getUser().getRolesInContext(app))
Expected:
    ['Authenticated', 'role1']
Got:
    ['Authenticated']
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 241, in z2.rst
Failed example:
    z2.setRoles(app['acl_users'], 'user1', [])
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[51]>", line 1, in <module>
        z2.setRoles(app['acl_users'], 'user1', [])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 203, in setRoles
        userFolder.userFolderEditUser(userId, None, list(roles), [])
      File "<string>", line 8, in _doChangeUser
      File "/home/jenkins/.buildout/eggs/plone.protect-4.0.1-py2.7.egg/plone/protect/utils.py", line 58, in _curried
        return callable(*args, **kw)
      File "<string>", line 8, in _doChangeUser
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/requestmethod.py", line 79, in _curried
        return callable(*args, **kw)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/pas.py", line 155, in _doChangeUser
        rmanager.assignRolesToPrincipal(roles, principal_id)
    AttributeError: 'RequestContainer' object has no attribute 'assignRolesToPrincipal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 269, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.IntegrationTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 298, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[65]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 339, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 354, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[81]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 431, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.006 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 459, in z2.rst
Failed example:
    runner.setup_layer(options, z2.ZSERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[114]>", line 1, in <module>
        runner.setup_layer(options, z2.ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 468, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 473, in z2.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 497, in z2.rst
Failed example:
    app_url.split(':')[:-1]
Expected:
    ['http', '//localhost']
Got:
    ['http']
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 501, in z2.rst
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[129]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 429, in open
        response = self._open(req, data)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 447, in _open
        '_open', req)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 1228, in http_open
        return self.do_open(httplib.HTTPConnection, req)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 1198, in do_open
        raise URLError(err)
    URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 502, in z2.rst
Failed example:
    print conn.read()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[130]>", line 1, in <module>
        print conn.read()
    AttributeError: 'Connection' object has no attribute 'read'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 524, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.ZServer:Functional in ... seconds.
    Tear down plone.testing.z2.ZServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.003 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 530, in z2.rst
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    URLError: <urlopen error [Errno ...] Connection refused>
Got:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[139]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 429, in open
        response = self._open(req, data)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 447, in _open
        '_open', req)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 1228, in http_open
        return self.do_open(httplib.HTTPConnection, req)
      File "/srv/python2.7/lib/python2.7/urllib2.py", line 1198, in do_open
        raise URLError(err)
    URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 563, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[146]>", line 1, in <module>
        runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 341, in setUp
        self.setUpZCML()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 731, in setUpZCML
        """, context=context)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/xmlconfig.py", line 516, in string
        context.execute_actions()
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 380, in execute_actions
        None, tb)
      File "/home/jenkins/.buildout/eggs/zope.configuration-4.1.0-py2.7.egg/zope/configuration/config.py", line 371, in execute_actions
        callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.security-4.2.2-py2.7-linux-x86_64.egg/zope/security/permission.py", line 51, in checkPermission
        raise ValueError("Undefined permission ID", permission_id)
    ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission ID', 'zope2.Public')
      in:
      File "<string>", line 6.4-6.68
      Could not read source.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 572, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 577, in z2.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 606, in z2.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[162]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/srv/python2.7/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -3] Temporary failure in name resolution
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 609, in z2.rst
Failed example:
    ftpClient.login('admin', 'secret')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[163]>", line 1, in <module>
        ftpClient.login('admin', 'secret')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 394, in login
        resp = self.sendcmd('USER ' + user)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 250, in sendcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 612, in z2.rst
Failed example:
    ftpClient.cwd(app_path)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[164]>", line 1, in <module>
        ftpClient.cwd(app_path)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 574, in cwd
        return self.voidcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 255, in voidcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 615, in z2.rst
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[165]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 440, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 250, in sendcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 621, in z2.rst
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[166]>", line 1, in <module>
        ftpClient.quit()
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 603, in quit
        resp = self.voidcmd('QUIT')
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 255, in voidcmd
        self.putcmd(cmd)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 183, in putcmd
        self.putline(line)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 178, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 642, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FTPServer:Functional in ... seconds.
    Tear down plone.testing.z2.FTPServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 648, in z2.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[174]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/srv/python2.7/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/srv/python2.7/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -3] Temporary failure in name resolution


  File "/srv/python2.7/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/srv/python2.7/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.vocabularies.catalog.CatalogSource

Error Message:
Failed doctest test for plone.app.vocabularies.catalog.CatalogSource

Stack Trace:
Failed doctest test for plone.app.vocabularies.catalog.CatalogSource
  File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 637, in CatalogSource

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 671, in plone.app.vocabularies.catalog.CatalogSource
Failed example:
    'asdf' in source
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest plone.app.vocabularies.catalog.CatalogSource[6]>", line 1, in <module>
        'asdf' in source
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 703, in __contains__
        return bool(self.search_catalog(query))
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 708, in search_catalog
        catalog = getToolByName(getSite(), 'portal_catalog')
      File "<string>", line 15, in check_getToolByName
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/patches/gtbn.py", line 23, in rewrap_in_request_container
        obj = aq_base(ob).__of__(obj)
    AttributeError: 'DummyContext' object has no attribute '__of__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 674, in plone.app.vocabularies.catalog.CatalogSource
Failed example:
    source.search_catalog({'foo': 'baz'})
Exception raised:
    Traceback (most recent call last):
      File "/srv/python2.7/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest plone.app.vocabularies.catalog.CatalogSource[7]>", line 1, in <module>
        source.search_catalog({'foo': 'baz'})
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 708, in search_catalog
        catalog = getToolByName(getSite(), 'portal_catalog')
      File "<string>", line 15, in check_getToolByName
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/patches/gtbn.py", line 23, in rewrap_in_request_container
        obj = aq_base(ob).__of__(obj)
    AttributeError: 'DummyContext' object has no attribute '__of__'


  File "/srv/python2.7/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/srv/python2.7/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


More information about the Testbot mailing list