Commit 068abf1d authored by Paul Graydon's avatar Paul Graydon

wendelin_telecom_test: Update tests

parent d3fead90
...@@ -730,18 +730,16 @@ class WendelinTelecomTest(SecurityTestCase): ...@@ -730,18 +730,16 @@ class WendelinTelecomTest(SecurityTestCase):
check that different users have the correct permissions according to their function and project. check that different users have the correct permissions according to their function and project.
''' '''
# Setup two distinct projects with one linked ORS each # Setup two different projects with one linked ORS each
project_a_item_dict = self.registerOrsClientProject() project_a_item_dict = self.registerOrsClientProject()
ors_a_item_dict = self.registerOrs() ors_a_item_dict = self.registerOrs()
ors_a_tag = ors_a_item_dict['data_acquisition_unit'].getReference() ors_a_tag = ors_a_item_dict['data_acquisition_unit'].getReference()
ors_a_item_dict['data_supply'].setDestinationProject(project_a_item_dict['project'].getRelativeUrl())
project_b_item_dict = self.registerOrsClientProject() project_b_item_dict = self.registerOrsClientProject()
ors_b_item_dict = self.registerOrs() ors_b_item_dict = self.registerOrs()
ors_b_tag = ors_b_item_dict['data_acquisition_unit'].getReference() ors_b_tag = ors_b_item_dict['data_acquisition_unit'].getReference()
ors_b_item_dict['data_supply'].setDestinationProject(project_b_item_dict['project'].getRelativeUrl())
# Register a third ORS without linking it to a project # Register a third ORS that will not be linked to a project
ors_n_item_dict = self.registerOrs() ors_n_item_dict = self.registerOrs()
ors_n_tag = ors_n_item_dict['data_acquisition_unit'].getReference() ors_n_tag = ors_n_item_dict['data_acquisition_unit'].getReference()
...@@ -762,6 +760,11 @@ class WendelinTelecomTest(SecurityTestCase): ...@@ -762,6 +760,11 @@ class WendelinTelecomTest(SecurityTestCase):
stop_data_analysis=True stop_data_analysis=True
) )
# Link the first two ORSs to their project AFTER the ingestion
# To check that project propagation on ingestion objects works correctly
ors_a_item_dict['data_supply'].setDestinationProject(project_a_item_dict['project'].getRelativeUrl())
ors_b_item_dict['data_supply'].setDestinationProject(project_b_item_dict['project'].getRelativeUrl())
# Create a client user not associated to a project # Create a client user not associated to a project
client_user_n = self.createWendelinTelecomUser('test_user_%s' % generateRandomString(), None, 'user') client_user_n = self.createWendelinTelecomUser('test_user_%s' % generateRandomString(), None, 'user')
......
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