Commit 647804ff authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test System Event module local roles

parent 860847e2
...@@ -1563,13 +1563,13 @@ class TestSystemEventModule(TestSlapOSGroupRoleSecurityMixin): ...@@ -1563,13 +1563,13 @@ class TestSystemEventModule(TestSlapOSGroupRoleSecurityMixin):
module = self.portal.system_event_module module = self.portal.system_event_module
self.changeOwnership(module) self.changeOwnership(module)
self.assertSecurityGroup(module, self.assertSecurityGroup(module,
['R-SHADOW-PERSON', self.user_id, 'G-COMPANY'], False) ['R-SHADOW-PERSON', self.user_id, 'F-IS*'], False)
self.assertRoles(module, 'R-SHADOW-PERSON', ['Author']) self.assertRoles(module, 'R-SHADOW-PERSON', ['Author'])
self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author']) self.assertRoles(module, 'F-IS*', ['Auditor'])
self.assertRoles(module, self.user_id, ['Owner']) self.assertRoles(module, self.user_id, ['Owner'])
class TestPayzenEvent(TestSlapOSGroupRoleSecurityMixin): class TestPayzenEvent(TestSlapOSGroupRoleSecurityMixin):
def test_GroupCompany(self): def test_default(self):
event = self.portal.system_event_module.newContent( event = self.portal.system_event_module.newContent(
portal_type='Payzen Event') portal_type='Payzen Event')
event.updateLocalRolesOnSecurityGroups() event.updateLocalRolesOnSecurityGroups()
...@@ -1596,7 +1596,7 @@ class TestPayzenEvent(TestSlapOSGroupRoleSecurityMixin): ...@@ -1596,7 +1596,7 @@ class TestPayzenEvent(TestSlapOSGroupRoleSecurityMixin):
self.assertRoles(event, self.user_id, ['Owner']) self.assertRoles(event, self.user_id, ['Owner'])
class TestWechatEvent(TestSlapOSGroupRoleSecurityMixin): class TestWechatEvent(TestSlapOSGroupRoleSecurityMixin):
def test_GroupCompany(self): def test_default(self):
event = self.portal.system_event_module.newContent( event = self.portal.system_event_module.newContent(
portal_type='Wechat Event') portal_type='Wechat Event')
event.updateLocalRolesOnSecurityGroups() event.updateLocalRolesOnSecurityGroups()
......
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