Commit 534d2558 authored by Gabriel Monnerat's avatar Gabriel Monnerat

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

Revert "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"

This reverts commit 07b4cd7f.
parent 86aa20d6
...@@ -546,10 +546,6 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -546,10 +546,6 @@ 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"]
...@@ -4630,17 +4626,17 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4630,17 +4626,17 @@ class TestVifibSlapWebService(testVifibMixin):
def test_ComputerPartition_request_slave_NotFound(self): def test_ComputerPartition_request_slave_NotFound(self):
""" """
Check that requesting a Slave Instance works in system capable to fulfill Check that requesting shared partition worksi 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 = self.prepare_formated_computer + """ sequence_string = \
LoginDefaultUser self.prepare_install_requested_computer_partition_sequence_string +\
SetRandomComputerPartition """
SlapLoginCurrentComputer Tic
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