Commit 8826fae3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor the code to get the computer partition directly

parent 0f6f9809
...@@ -6154,12 +6154,14 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -6154,12 +6154,14 @@ class TestVifibSlapWebService(testVifibMixin):
def stepCheckEmptySlaveInstanceListFromOneComputerPartition(self, sequence): def stepCheckEmptySlaveInstanceListFromOneComputerPartition(self, sequence):
computer_guid = sequence["computer_reference"] computer_guid = sequence["computer_reference"]
partition_id = sequence["computer_partition_reference"]
self.slap = slap.slap() self.slap = slap.slap()
self.slap.initializeConnection(self.server_url) self.slap.initializeConnection(self.server_url)
computer = self.slap.registerComputer(computer_guid) computer_partition = self.slap.registerComputerPartition(computer_guid,
computer_partition = computer.getComputerPartitionList()[0] partition_id)
self.assertEquals([], parameter_dict = computer_partition.getInstanceParameterDict()
computer_partition.getInstanceParameterDict()["slave_instance_list"]) slave_instance_list = parameter_dict["slave_instance_list"]
self.assertEquals([], slave_instance_list)
def stepCheckSlaveInstanceListFromOneComputerPartition(self, sequence, def stepCheckSlaveInstanceListFromOneComputerPartition(self, sequence,
expected_amount=1): expected_amount=1):
......
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