Commit ad22fdcc authored by Romain Courteaud's avatar Romain Courteaud

Explicitly pass all arguments to Person.requestSoftwareInstance.

parent f54f3e9a
......@@ -73,7 +73,11 @@ request_kw = {}\n
request_kw.update(\n
software_release=url,\n
software_title=service_title,\n
software_type="RootSoftwareInstance",\n
instance_xml=instance_xml,\n
sla_xml="",\n
shared=False,\n
state="started",\n
)\n
\n
person.requestSoftwareInstance(**request_kw)\n
......
......@@ -69,7 +69,11 @@ request_kw = {}\n
request_kw.update(\n
software_release=url,\n
software_title="Vifib KVM %i" % portal.portal_ids.generateNewId(id_group=("vifib", "kvm"), default=1),\n
software_type="RootSoftwareInstance",\n
instance_xml=instance_xml,\n
sla_xml="",\n
shared=False,\n
state="started",\n
)\n
\n
person.requestSoftwareInstance(**request_kw)\n
......
......@@ -81,8 +81,11 @@ request_kw = {}\n
request_kw.update(\n
software_release=software_release.getUrlString(),\n
software_title=service_title,\n
software_type="RootSoftwareInstance",\n
instance_xml=instance_xml,\n
shared=shared,\n
sla_xml="",\n
shared=False,\n
state="started",\n
)\n
\n
if computer:\n
......
364
\ No newline at end of file
365
\ No newline at end of file
......@@ -608,8 +608,11 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
person.requestSoftwareInstance(
software_release=software_release.getUrlString(),
software_title=software_title,
software_type="RootSoftwareInstance",
instance_xml=self.minimal_correct_xml,
**kw)
sla_xml="",
shared=False,
state="started")
sequence.edit(root_software_instance_title=software_title)
def test_update_not_created_person_request_in_progress(self):
......
......@@ -602,9 +602,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
person.requestSoftwareInstance(
software_release=software_release.getUrlString(),
software_title=software_title,
software_type="RootSoftwareInstance",
instance_xml=self.minimal_correct_xml,
sla_xml=sequence.get('sla_xml'),
**kw)
shared=False,
state="started")
transaction.commit()
self.tic()
# Note: This is tricky part. Workflow methods does not return nothing
......
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