[Testbot] Plone 5.0 - Python 2.7 - Build # 1929 - Improvement! - 2 failure(s)

jenkins at plone.org jenkins at plone.org
Wed Mar 12 04:25:51 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 1929 - Still Failing!
-------------------------------------------------------------------------------

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


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

Repository: plone.app.linkintegrity
Branch: refs/heads/master
Date: 2014-03-11T21:36:25-05:00
Author: Nathan Van Gheem (vangheem) <vangheem at gmail.com>
Commit: https://github.com/plone/plone.app.linkintegrity/commit/6517f625a2dc8f0e2ee1aaf24d663423671aa52f

fix tests to work with auto csrf protection

Files changed:
M plone/app/linkintegrity/docs/testCircularReferences.txt
M plone/app/linkintegrity/docs/testCircularReferencesWithHelper.txt
M plone/app/linkintegrity/docs/testConfirmationPageIntegration.txt
M plone/app/linkintegrity/docs/testCrossReferences.txt
M plone/app/linkintegrity/docs/testInterReferences.txt
M plone/app/linkintegrity/docs/testOnOffSwitch.txt
M plone/app/linkintegrity/docs/testRemovalInReferenceChain.txt
M plone/app/linkintegrity/docs/testRemovalOfReferenceChain.txt
M plone/app/linkintegrity/docs/testRemovalsWithYesToAll.txt
M plone/app/linkintegrity/docs/testRenamingReferencedItem.txt
M plone/app/linkintegrity/tests/test_doctests.py

diff --git a/plone/app/linkintegrity/docs/testCircularReferences.txt b/plone/app/linkintegrity/docs/testCircularReferences.txt
index 65c087a..0672f34 100644
--- a/plone/app/linkintegrity/docs/testCircularReferences.txt
+++ b/plone/app/linkintegrity/docs/testCircularReferences.txt
@@ -49,7 +49,7 @@ since their target objects are known to be removed as well.  Hence there are
 no further confirmation forms:
 
   >>> browser.url
-  'http://nohost/plone/folder_contents'
+  'http://nohost/plone/folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testCircularReferencesWithHelper.txt b/plone/app/linkintegrity/docs/testCircularReferencesWithHelper.txt
index 77b3bf2..ad6f8ee 100644
--- a/plone/app/linkintegrity/docs/testCircularReferencesWithHelper.txt
+++ b/plone/app/linkintegrity/docs/testCircularReferencesWithHelper.txt
@@ -19,7 +19,7 @@ We use a browser to try to delete all three documents:
   >>> browser = self.getBrowser(loggedIn=True)
   >>> browser.post('http://nohost/plone/folder_delete?paths:list=doc1&paths:list=doc2&paths:list=folder1&_authenticator=' + self.getAuthenticator(), '')
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testConfirmationPageIntegration.txt b/plone/app/linkintegrity/docs/testConfirmationPageIntegration.txt
index 46743b0..a9fb7fb 100644
--- a/plone/app/linkintegrity/docs/testConfirmationPageIntegration.txt
+++ b/plone/app/linkintegrity/docs/testConfirmationPageIntegration.txt
@@ -10,11 +10,11 @@ should appear in this case:
   >>> browser.open('http://nohost/plone/image1/view')
   >>> browser.getLink('Delete').click()
   >>> browser.url
-  'http://nohost/plone/image1/delete_confirmation'
+  'http://nohost/plone/image1/delete_confirmation...'
   >>> browser.contents
   '...Do you really want to delete this item?...
    ...Test Image 1...
-   ...<form...action="http://nohost/plone/image1/delete_confirmation"...'
+   ...<form...action="http://nohost/plone/image1/delete_confirmation...'
 
 Then we create a link to the same image from a text document and try to delete
 it again:
diff --git a/plone/app/linkintegrity/docs/testCrossReferences.txt b/plone/app/linkintegrity/docs/testCrossReferences.txt
index c87c9a5..15adc0a 100644
--- a/plone/app/linkintegrity/docs/testCrossReferences.txt
+++ b/plone/app/linkintegrity/docs/testCrossReferences.txt
@@ -47,7 +47,7 @@ since their target objects are known to be removed as well.  Hence there are
 no further confirmation forms:
 
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testInterReferences.txt b/plone/app/linkintegrity/docs/testInterReferences.txt
index eec9277..00d424e 100644
--- a/plone/app/linkintegrity/docs/testInterReferences.txt
+++ b/plone/app/linkintegrity/docs/testInterReferences.txt
@@ -25,7 +25,7 @@ for more info):
   >>> browser = self.getBrowser(loggedIn=True)
   >>> browser.post('http://nohost/plone/folder_delete?paths:list=doc1&paths:list=doc2&paths:list=folder1&_authenticator=' + self.getAuthenticator(), '')
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testOnOffSwitch.txt b/plone/app/linkintegrity/docs/testOnOffSwitch.txt
index 355a03a..f84ceb0 100644
--- a/plone/app/linkintegrity/docs/testOnOffSwitch.txt
+++ b/plone/app/linkintegrity/docs/testOnOffSwitch.txt
@@ -25,7 +25,7 @@ properties and try again:
   >>> props.manage_changeProperties(enable_link_integrity_checks=False)
   >>> browser.reload()
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testRemovalInReferenceChain.txt b/plone/app/linkintegrity/docs/testRemovalInReferenceChain.txt
index d4520bb..2d6fde2 100644
--- a/plone/app/linkintegrity/docs/testRemovalInReferenceChain.txt
+++ b/plone/app/linkintegrity/docs/testRemovalInReferenceChain.txt
@@ -20,7 +20,7 @@ docs/testRemovalTriggersConfirmation.txt for more info):
   >>> browser = self.getBrowser(loggedIn=True)
   >>> browser.post('http://nohost/plone/folder_delete?paths:list=doc1&_authenticator=' + self.getAuthenticator(), '')
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testRemovalOfReferenceChain.txt b/plone/app/linkintegrity/docs/testRemovalOfReferenceChain.txt
index a2c005d..393d00a 100644
--- a/plone/app/linkintegrity/docs/testRemovalOfReferenceChain.txt
+++ b/plone/app/linkintegrity/docs/testRemovalOfReferenceChain.txt
@@ -20,7 +20,7 @@ docs/testRemovalTriggersConfirmation.txt for more info):
   >>> browser = self.getBrowser(loggedIn=True)
   >>> browser.post('http://nohost/plone/folder_delete?paths:list=doc1&paths:list=folder1&_authenticator=' + self.getAuthenticator(), '')
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testRemovalsWithYesToAll.txt b/plone/app/linkintegrity/docs/testRemovalsWithYesToAll.txt
index 690a1d2..b590f14 100644
--- a/plone/app/linkintegrity/docs/testRemovalsWithYesToAll.txt
+++ b/plone/app/linkintegrity/docs/testRemovalsWithYesToAll.txt
@@ -29,7 +29,7 @@ here we choose to skip any further questions:
 
   >>> browser.getControl(name='delete_all').click()
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.contents
   '...<dl class="portalMessage...Item(s) deleted...</dl>...'
 
diff --git a/plone/app/linkintegrity/docs/testRenamingReferencedItem.txt b/plone/app/linkintegrity/docs/testRenamingReferencedItem.txt
index 3b0448d..ca931f2 100644
--- a/plone/app/linkintegrity/docs/testRenamingReferencedItem.txt
+++ b/plone/app/linkintegrity/docs/testRenamingReferencedItem.txt
@@ -22,7 +22,7 @@ Now the image should have a new id and title, which we check for:
 It should also be available under that name via the browser, of course:
 
   >>> browser.url
-  'http://nohost/plone/...folder_contents'
+  'http://nohost/plone/...folder_contents...'
   >>> browser.getLink('NuName').click()
   >>> browser.url
   'http://nohost/plone/nuname'
diff --git a/plone/app/linkintegrity/tests/test_doctests.py b/plone/app/linkintegrity/tests/test_doctests.py
index 98f7858..8f5ef87 100644
--- a/plone/app/linkintegrity/tests/test_doctests.py
+++ b/plone/app/linkintegrity/tests/test_doctests.py
@@ -1,11 +1,9 @@
 # -*- coding:utf-8 -*-
 # setup tests with all doctests found in docs/
 
-from hashlib import sha1
 from plone.app.linkintegrity import docs
 from plone.app.linkintegrity.tests import layer, utils
 from plone.app.linkintegrity.parser import extractLinks
-from plone.keyring.interfaces import IKeyManager
 from Testing.ZopeTestCase import FunctionalDocFileSuite
 from Products.PloneTestCase import PloneTestCase
 from unittest import TestSuite, TestCase, makeSuite
@@ -13,9 +11,7 @@
 from os import walk
 from re import compile
 from sys import argv
-from zope.component import getUtility
-import hmac
-
+from plone.protect import authenticator as auth
 
 PloneTestCase.setupPloneSite()
 
@@ -73,10 +69,7 @@ def set(self, key, value, set_orig=set_orig):
         HTTPRequest.set = set
 
     def getAuthenticator(self):
-        manager = getUtility(IKeyManager)
-        secret = manager.secret()
-        user = 'test_user_1_'
-        return hmac.new(secret, user, sha1).hexdigest()
+        return auth.createToken()
 
 
 class LinkIntegrityTestCase(TestCase):




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 9276 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140312/63b962be/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 123257 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140312/63b962be/attachment-0003.obj>


More information about the Testbot mailing list