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