Commit 32fe3809 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Refactor steps to validate if the exception NotFoundError is raised correctly...

Refactor steps to validate if the exception NotFoundError is raised correctly when a software release is not installed in the selected computer partition
parent b8fe9695
...@@ -1348,7 +1348,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -1348,7 +1348,7 @@ class TestVifibSlapWebService(testVifibMixin):
filter_kw=sequence.get('requested_filter_dict', {}), filter_kw=sequence.get('requested_filter_dict', {}),
state=sequence.get('instance_state')) state=sequence.get('instance_state'))
def stepRequestSlaveInstanceFromComputerPartitionNotFoundResponse(self, sequence, **kw): def stepRequestSlaveInstanceFromComputerPartitionNotFoundError(self, sequence, **kw):
software_release_uri = sequence['software_release_uri'] software_release_uri = sequence['software_release_uri']
requested_reference = sequence['requested_reference'] requested_reference = sequence['requested_reference']
requested_parameter_dict = sequence['requested_parameter_dict'] requested_parameter_dict = sequence['requested_parameter_dict']
...@@ -4630,20 +4630,20 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4630,20 +4630,20 @@ class TestVifibSlapWebService(testVifibMixin):
def test_ComputerPartition_request_slave_NotFound(self): def test_ComputerPartition_request_slave_NotFound(self):
""" """
Check that requesting shared partition worksi in system capable to fulfill Check that requesting a Slave Instance works in system capable to fulfill
such request, with Slave Partition does not exist yet. such request, with Slave Partition does not exist yet.
""" """
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = \ sequence_string = self.prepare_formated_computer + """
self.prepare_install_requested_computer_partition_sequence_string +\ LoginDefaultUser
""" SetRandomComputerPartition
Tic SlapLoginCurrentComputer
SlapLoginCurrentSoftwareInstance SelectEmptyRequestedParameterDict
SelectEmptyRequestedParameterDict SetRandomRequestedReference
SetRandomRequestedReference SelectNewSoftwareReleaseUri
RequestSlaveInstanceFromComputerPartitionNotFoundResponse RequestSlaveInstanceFromComputerPartitionNotFoundError
SlapLogout SlapLogout
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
......
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