Commit 5266cc9b authored by Antoine Catton's avatar Antoine Catton

Merge branch 'master' into rename_instance

Conflicts:
	master/product/Vifib/tests/testVifibSlapWebService.py
parents c2e6a934 ab2bd41e
...@@ -1776,14 +1776,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1776,14 +1776,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
filter_kw=sequence.get('requested_filter_dict', {}), filter_kw=sequence.get('requested_filter_dict', {}),
state=sequence.get('instance_state')) state=sequence.get('instance_state'))
def stepSetSoftwareInstanceChildrenA(self, sequence, **kw): def _stepSetSoftwareInstanceChildren(self, sequence, source_reference):
software_instance_uid = sequence['root_software_instance_uid'] software_instance_uid = sequence['root_software_instance_uid']
software_instance = self.portal.portal_catalog.getResultValue( software_instance = self.portal.portal_catalog.getResultValue(
uid=software_instance_uid) uid=software_instance_uid)
children_software_instance = \ children_software_instance = \
software_instance.portal_catalog.getResultValue( software_instance.portal_catalog.getResultValue(
portal_type="Software Instance", source_reference='children_a', portal_type="Software Instance", source_reference=source_reference,
root_uid=sequence['hosting_subscription_uid']) root_uid=software_instance_uid)
self.assertNotEqual(None, children_software_instance) self.assertNotEqual(None, children_software_instance)
self.assertNotEqual(software_instance.getRelativeUrl(), self.assertNotEqual(software_instance.getRelativeUrl(),
children_software_instance.getRelativeUrl()) children_software_instance.getRelativeUrl())
...@@ -1794,6 +1794,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1794,6 +1794,11 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
_softwareInstance_getComputerPartition(children_software_instance _softwareInstance_getComputerPartition(children_software_instance
).getReference() ).getReference()
) )
def stepSetSoftwareInstanceChildrenA(self, sequence, **kw):
self._stepSetSoftwareInstanceChildren(sequence, 'children_a')
def stepSetSoftwareInstanceChildrenB(self, sequence, **kw):
self._stepSetSoftwareInstanceChildren(sequence, 'children_b')
def stepSetRootSoftwareInstanceCurrentInstance(self, sequence, **kw): def stepSetRootSoftwareInstanceCurrentInstance(self, sequence, **kw):
software_instance_uid = sequence['software_instance_uid'] software_instance_uid = sequence['software_instance_uid']
......
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