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

Use request to start and stop.

parent 6c78e231
......@@ -759,12 +759,6 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepSetSequenceSoftwareInstanceStateStopped(self, sequence, **kw):
sequence['software_instance_state'] = 'stopped'
def stepSetSequenceSoftwareInstanceStateStarted(self, sequence, **kw):
sequence['software_instance_state'] = 'started'
def test_start_computer_partition_allocation_scope_close(self):
"""Check that it is possible to request stop of computer partition even
if computer is close"""
......
......@@ -1085,6 +1085,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
SlapLogout
LoginTestVifibCustomer
SetSoftwareTitleRandom
PersonRequestSoftwareInstance
Tic
Logout
......@@ -1169,7 +1170,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_start_requested_computer_partition_sequence_string = \
prepare_installed_computer_partition_sequence_string + '\
LoginTestVifibCustomer \
RequestSoftwareInstanceStart \
SetSequenceSoftwareInstanceStateStarted \
PersonRequestSoftwareInstance \
Tic \
Logout \
LoginDefaultUser \
......@@ -1191,7 +1193,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_stop_requested_computer_partition_sequence_string = \
prepare_started_computer_partition_sequence_string + '\
LoginTestVifibCustomer \
RequestSoftwareInstanceStop \
SetSequenceSoftwareInstanceStateStopped \
PersonRequestSoftwareInstance \
Tic \
Logout \
\
......@@ -1476,6 +1479,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
# Steps
########################################
def stepSetSequenceSoftwareInstanceStateStopped(self, sequence, **kw):
sequence['software_instance_state'] = 'stopped'
def stepSetSequenceSoftwareInstanceStateStarted(self, sequence, **kw):
sequence['software_instance_state'] = 'started'
def stepCheckComputerTradeConditionDestinationSectionListEmpty(self,
sequence, **kw):
computer = 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