Commit a62e1d68 authored by Łukasz Nowak's avatar Łukasz Nowak

R-SHADOW is used during allocation.

That's why he needs access to Computer Network.
parent 0c303764
......@@ -77,7 +77,8 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
def test_ComputerModelModuleLocalRoles(self):
module = self.portal.computer_model_module
self.assertSecurityGroup(module, ['R-MEMBER', 'zope'], False)
self.assertSecurityGroup(module,
['R-MEMBER', 'R-SHADOW', 'zope'], False)
self.assertRoles(module, 'R-MEMBER', ['Author', 'Auditor'])
self.assertRoles(module, 'zope', ['Owner'])
......@@ -93,7 +94,8 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
module = self.portal.computer_model_module
Model = module.newContent(portal_type="Computer Model")
self.assertSecurityGroup(Model, ['ERP5TypeTestCase', 'G-COMPANY'], False)
self.assertSecurityGroup(Model,
['ERP5TypeTestCase', 'G-COMPANY', 'R-SHADOW'], False)
self.assertRoles(Model, 'ERP5TypeTestCase', ['Owner'])
self.assertRoles(Model, 'G-COMPANY', ['Assignor'])
......
474
\ No newline at end of file
475
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment