Commit ebf51cce authored by Romain Courteaud's avatar Romain Courteaud

Requesting detroyed instance does not return the instance

parent 2cf226e1
...@@ -606,12 +606,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -606,12 +606,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.software_instance_portal_type) self.software_instance_portal_type)
software_instance = self.portal.REQUEST.get('request_instance') software_instance = self.portal.REQUEST.get('request_instance')
hosting_subscription = self.portal.REQUEST.get('request_hosting_subscription') hosting_subscription = self.portal.REQUEST.get('request_hosting_subscription')
sequence.edit( if (software_instance is not None):
root_software_instance_title=software_title, sequence.edit(
software_instance_uid=software_instance.getUid(), root_software_instance_title=software_title,
software_instance_reference=software_instance.getReference(), software_instance_uid=software_instance.getUid(),
hosting_subscription_uid=hosting_subscription.getUid(), software_instance_reference=software_instance.getReference(),
) hosting_subscription_uid=hosting_subscription.getUid(),
)
def stepSetComputerPartitionFromRootSoftwareInstance(self, sequence): def stepSetComputerPartitionFromRootSoftwareInstance(self, sequence):
computer_partition = self.portal.portal_catalog.getResultValue( computer_partition = self.portal.portal_catalog.getResultValue(
......
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