Commit 438b6cde authored by Romain Courteaud's avatar Romain Courteaud

requestDestroyComputerPartition has been removed

parent 258a1ced
...@@ -659,8 +659,21 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -659,8 +659,21 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
) )
def stepRequestSoftwareInstanceDestroy(self, sequence, **kw): def stepRequestSoftwareInstanceDestroy(self, sequence, **kw):
self.portal.portal_catalog.getResultValue( instance = self.portal.portal_catalog.getResultValue(
uid=sequence['software_instance_uid']).requestDestroyComputerPartition() uid=sequence['software_instance_uid'])
if instance.getPortalType() == "Software Instance":
shared = False
elif instance.getPortalType() == "Slave Instance":
shared = True
else:
raise NotImplementedError
instance.requestDestroy(
software_release=instance.getRootSoftwareReleaseUrl(),
instance_xml=instance.getTextContent(),
software_type=instance.getSourceReference(),
sla_xml=instance.getSlaXml(),
shared=shared,
)
def stepRequestSoftwareInstanceDestroyRaisesValueError(self, sequence, **kw): def stepRequestSoftwareInstanceDestroyRaisesValueError(self, sequence, **kw):
self.assertRaises(ValueError, self.portal.portal_catalog.getResultValue( self.assertRaises(ValueError, self.portal.portal_catalog.getResultValue(
...@@ -970,16 +983,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -970,16 +983,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
LoginTestVifibDeveloper LoginTestVifibDeveloper
SelectNewSoftwareReleaseUri SelectNewSoftwareReleaseUri
CreateSoftwareRelease CreateSoftwareRelease
Tic CleanTic
SubmitSoftwareRelease SubmitSoftwareRelease
Tic CleanTic
CreateSoftwareProduct CreateSoftwareProduct
Tic CleanTic
ValidateSoftwareProduct ValidateSoftwareProduct
Tic CleanTic
SetSoftwareProductToSoftwareRelease SetSoftwareProductToSoftwareRelease
PublishByActionSoftwareRelease PublishByActionSoftwareRelease
Tic CleanTic
Logout Logout
""" """
...@@ -997,7 +1010,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -997,7 +1010,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_formated_computer = prepare_computer + """ prepare_formated_computer = prepare_computer + """
SlapLoginCurrentComputer SlapLoginCurrentComputer
FormatComputer FormatComputer
Tic CleanTic
SlapLogout SlapLogout
""" """
......
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