Commit 50737417 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: (Test) Ensure that the objects are indexed.

parent 337a460b
......@@ -260,6 +260,7 @@ class TestComputerPartition(TestSlapOSGroupRoleSecurityMixin):
self.commit()
partition.updateLocalRolesOnSecurityGroups()
self.tic()
self.assertSecurityGroup(partition,
[self.user_id, instance_customer.getUserId(), slave_customer.getUserId(),
instance_subscription_reference], True)
......@@ -597,12 +598,11 @@ class TestSlaveInstance(TestSlapOSGroupRoleSecurityMixin):
aggregate=partition.getRelativeUrl())
provider.validate()
self.commit()
self.tic()
instance = self.portal.software_instance_module.newContent(
portal_type='Slave Instance', aggregate=partition.getRelativeUrl())
instance.updateLocalRolesOnSecurityGroups()
self.assertSecurityGroup(instance, ['G-COMPANY', provider.getUserId(),
computer.getUserId(), self.user_id], False)
self.assertRoles(instance, 'G-COMPANY', ['Assignor'])
......
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