Commit b8fe9695 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add step to select a random computer partition. This method is used to select...

Add step to select a random computer partition. This method is used to select one computer partition that does not exists one software release and one software instance installed in this partition. For now, the first one is enough
parent 534d2558
......@@ -546,6 +546,10 @@ class TestVifibSlapWebService(testVifibMixin):
def stepSetRandomComputerReference(self, sequence, **kw):
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):
computer_partition_reference_list = []
computer_guid = sequence["computer_reference"]
......
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