From 62694273c9524011171b85cf9cab3bec331f4305 Mon Sep 17 00:00:00 2001 From: schlatterbeck Date: Thu, 21 Oct 2010 19:53:51 +0000 Subject: [PATCH] fix broken tests by adding additional permissions now that we check for permission on the destination class of a Link/Multilink when searching... git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4555 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_cgi.py | 4 ++++ test/test_xmlrpc.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/test_cgi.py b/test/test_cgi.py index 91878e9..b8371bd 100644 --- a/test/test_cgi.py +++ b/test/test_cgi.py @@ -741,6 +741,10 @@ class FormTestCase(unittest.TestCase): p = self.db.security.addPermission(name='View', klass='iss', properties=("title", "status"), check=lambda x,y,z: True) self.db.security.addPermissionToRole('User', p) + # Allow all relevant roles access to stat + p = self.db.security.addPermission(name='View', klass='stat') + self.db.security.addPermissionToRole('User', p) + self.db.security.addPermissionToRole('Project', p) # Allow role "Project" access to whole iss p = self.db.security.addPermission(name='View', klass='iss') self.db.security.addPermissionToRole('Project', p) diff --git a/test/test_xmlrpc.py b/test/test_xmlrpc.py index e88e291..04d4b9c 100644 --- a/test/test_xmlrpc.py +++ b/test/test_xmlrpc.py @@ -134,6 +134,10 @@ class TestCase(unittest.TestCase): # Allow role "Project" access to whole issue p = self.db.security.addPermission(name='View', klass='issue') self.db.security.addPermissionToRole('Project', p) + # Allow all access to status: + p = self.db.security.addPermission(name='View', klass='status') + self.db.security.addPermissionToRole('User', p) + self.db.security.addPermissionToRole('Project', p) keyword = self.db.keyword status = self.db.status -- 2.30.2