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