Commit 8d9b8214 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test requesting Remote Slave

parent 35ef59b6
......@@ -479,7 +479,10 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
def checkRemoteInstanceAllocation(self, person_user_id, person_reference,
instance_title, software_release, software_type, server,
project_reference, connection_dict_to_check=None):
project_reference, connection_dict_to_check=None,
slave=False):
shared_xml = '<marshal><bool>%i</bool></marshal>' % int(slave)
self.login(person_user_id)
......@@ -488,7 +491,8 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
software_release=software_release,
software_type=software_type,
partition_reference=instance_title,
project_reference=project_reference
project_reference=project_reference,
shared_xml=shared_xml,
)
self.checkCloudContract(person_user_id, person_reference,
......@@ -501,7 +505,8 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
software_release=software_release,
software_type=software_type,
partition_reference=instance_title,
project_reference=project_reference
project_reference=project_reference,
shared_xml=shared_xml,
)
# now instantiate it on compute_node and set some nice connection dict
......
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