Commit c24bfbdd authored by Łukasz Nowak's avatar Łukasz Nowak

Follow internal code changes.

Use correct method to request destruction.
Use slap tool to inform about destruction.
parent d67c5c88
......@@ -672,12 +672,21 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
self.logout()
self.login(sequence['software_instance_reference'])
root_software_instance.requestDestroyComputerPartition()
root_software_instance.requestDestroy(
software_release=root_software_instance.getRootSoftwareReleaseUrl(),
instance_xml=root_software_instance.getTextContent(),
software_type=root_software_instance.getSourceReference(),
sla_xml=root_software_instance.getSlaXml(),
shared=root_software_instance.getPortalType() == 'Slave Instance',
)
self.stepTic()
self.logout()
self.login(sequence['computer_reference'])
root_software_instance.destroyComputerPartition()
self.portal.portal_slap.destroyedComputerPartition(
sequence['computer_reference'],
root_software_instance.getAggregateValue(
portal_type='Computer Partition').getReference())
self.stepTic()
self.logout()
......
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