Commit fbbdf51a authored by Romain Courteaud's avatar Romain Courteaud

Directly fetch the related Slave Instance

parent 696a9c05
......@@ -1480,10 +1480,11 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
def stepSetSoftwareInstanceUidToCurrentSlave(self, sequence, **kw):
computer_partition = self.portal.portal_catalog.getResultValue(uid=sequence[
'computer_partition_uid'])
instance_setup_packing_list = computer_partition\
.Item_getInstancePackingListLine()
slave_instance = instance_setup_packing_list.getAggregateValue(
portal_type='Slave Instance')
computer_partition = self.portal.portal_catalog.getResultValue(
portal_type="Slave Instance",
validation_state="validated",
default_aggregate_uid=computer_partition.getUid(),
)
sequence['software_instance_uid'] = slave_instance.getUid()
def test_catalog_slave_destruction(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