Commit 9e9ad98f authored by Romain Courteaud's avatar Romain Courteaud

Hosting Subscription security has been updated.

parent d4066a1e
...@@ -113,21 +113,21 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow( ...@@ -113,21 +113,21 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow(
hosting_subscription = self.portal.hosting_subscription_module.newContent( hosting_subscription = self.portal.hosting_subscription_module.newContent(
portal_type='Hosting Subscription') portal_type='Hosting Subscription')
self.assertSecurityGroup(hosting_subscription, [self.user_id, self.assertSecurityGroup(hosting_subscription, [self.user_id,
hosting_subscription.getId()], hosting_subscription.getId(), 'G-COMPANY'],
False) False)
hosting_subscription.edit(reference='TESTHS-%s' % self.generateNewId()) hosting_subscription.edit(reference='TESTHS-%s' % self.generateNewId())
transaction.commit() transaction.commit()
self.assertSecurityGroup(hosting_subscription, [self.user_id, self.assertSecurityGroup(hosting_subscription, [self.user_id,
hosting_subscription.getReference()], False) hosting_subscription.getReference(), 'G-COMPANY'], False)
def test_HostingSubscription_setDestinationSection(self): def test_HostingSubscription_setDestinationSection(self):
self._makePerson() self._makePerson()
hosting_subscription = self.portal.hosting_subscription_module.newContent( hosting_subscription = self.portal.hosting_subscription_module.newContent(
portal_type='Hosting Subscription') portal_type='Hosting Subscription')
self.assertSecurityGroup(hosting_subscription, [self.user_id, self.assertSecurityGroup(hosting_subscription, [self.user_id,
hosting_subscription.getId()], hosting_subscription.getId(), 'G-COMPANY'],
False) False)
hosting_subscription.edit( hosting_subscription.edit(
...@@ -135,7 +135,8 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow( ...@@ -135,7 +135,8 @@ class TestSlapOSLocalPermissionSlapOSInteractionWorkflow(
transaction.commit() transaction.commit()
self.assertSecurityGroup(hosting_subscription, [self.user_id, self.assertSecurityGroup(hosting_subscription, [self.user_id,
hosting_subscription.getId(), self.person_user.getReference()], hosting_subscription.getId(), self.person_user.getReference(),
'G-COMPANY'],
False) False)
def test_Person_setReference(self): def test_Person_setReference(self):
......
146 147
\ No newline at end of file \ 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