Commit 07b4cd7f authored by Gabriel Monnerat's avatar Gabriel Monnerat

add step to be possible select a random computer partition. For now, select...

add step to be possible select a random computer partition. For now, select the first one is enough. This step will be used to raise the exception NotFoundError
parent bca43efc
...@@ -546,6 +546,10 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -546,6 +546,10 @@ class TestVifibSlapWebService(testVifibMixin):
def stepSetRandomComputerReference(self, sequence, **kw): def stepSetRandomComputerReference(self, sequence, **kw):
sequence['computer_reference'] = str(random()) sequence['computer_reference'] = str(random())
def stepSetRandomComputerPartition(self, sequence, **kw):
sequence.edit(computer_partition_reference=\
sequence["computer_partition_reference_list"][0])
def stepFormatComputer(self, sequence, **kw): def stepFormatComputer(self, sequence, **kw):
computer_partition_reference_list = [] computer_partition_reference_list = []
computer_guid = sequence["computer_reference"] computer_guid = sequence["computer_reference"]
...@@ -4626,17 +4630,17 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4626,17 +4630,17 @@ 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 RequestSlaveInstanceFromComputerPartitionNotFoundResponse
SlapLogout SlapLogout
""" """
......
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