Commit 3d2d462d authored by Rafael Monnerat's avatar Rafael Monnerat

Add test for make sure state is optional for slave also.

parent 75a33c86
...@@ -1405,6 +1405,12 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -1405,6 +1405,12 @@ class TestVifibSlapWebService(testVifibMixin):
requested_computer_partition_reference=\ requested_computer_partition_reference=\
requested_slap_computer_partition.getId()) requested_slap_computer_partition.getId())
def stepDirectRequestComputerPartitionNotReadyResponseWithoutStateAndSlaveTrue(
self, sequence, **kw):
kw["slave"] = True
self.stepDirectRequestComputerPartitionNotReadyResponseWithoutState(
sequence, **kw)
def stepDirectRequestComputerPartitionNotReadyResponseWithoutState(self, def stepDirectRequestComputerPartitionNotReadyResponseWithoutState(self,
sequence, **kw): sequence, **kw):
request_dict = { 'computer_id': sequence['computer_reference'] , request_dict = { 'computer_id': sequence['computer_reference'] ,
...@@ -4486,6 +4492,24 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4486,6 +4492,24 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_request_slave_state_is_optional(self):
"""Checks that state is optional parameter on Slap Tool
This ensures backward compatibility with old libraries."""
self.computer_partition_amount = 2
sequence_list = SequenceList()
sequence_string = \
self.prepare_install_requested_computer_partition_sequence_string + '\
SlapLoginCurrentSoftwareInstance \
DirectRequestComputerPartitionNotReadyResponseWithoutStateAndSlaveTrue \
Tic \
SlapLogout \
\
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
######################################### #########################################
# SlaveInstance.request # SlaveInstance.request
######################################### #########################################
......
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