Commit 943972c1 authored by Romain Courteaud's avatar Romain Courteaud

Request is forbidden on destroyed instance.

parent 737ddf17
...@@ -4,6 +4,7 @@ from testVifibSlapWebService import TestVifibSlapWebServiceMixin ...@@ -4,6 +4,7 @@ from testVifibSlapWebService import TestVifibSlapWebServiceMixin
from Products.DCWorkflow.DCWorkflow import ValidationFailed from Products.DCWorkflow.DCWorkflow import ValidationFailed
from random import random from random import random
from Products.ERP5Type.tests.backportUnittest import skip from Products.ERP5Type.tests.backportUnittest import skip
from Products.ERP5Type.Errors import UnsupportedWorkflowMethod
class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
def stepRequestSoftwareInstanceUpdate(self, sequence, **kw): def stepRequestSoftwareInstanceUpdate(self, sequence, **kw):
...@@ -423,7 +424,8 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin): ...@@ -423,7 +424,8 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
'stop_requested': instance.requestStop, 'stop_requested': instance.requestStop,
'destroy_requested': instance.requestDestroy, 'destroy_requested': instance.requestDestroy,
} }
self.assertRaises(ValidationFailed, method_dict[instance.getSlapState()], self.assertRaises(UnsupportedWorkflowMethod,
method_dict[instance.getSlapState()],
software_release=instance.getRootSoftwareReleaseUrl(), software_release=instance.getRootSoftwareReleaseUrl(),
instance_xml=instance.getTextContent(), instance_xml=instance.getTextContent(),
software_type=instance.getSourceReference(), software_type=instance.getSourceReference(),
......
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