Commit 9e8062e6 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Avoid call tic prevent missallocation

  Invoke activities are not expected on this test, as there are
  others partitions that can allocate before we call the API we
  would like to test.
parent fad397b4
Pipeline #7554 failed with stage
in 0 seconds
......@@ -611,6 +611,10 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by S
self.assertEqual(None, self.software_instance.getAggregateValue(
portal_type='Computer Partition'))
self.assertEqual(None, self.requested_software_instance.getAggregateValue(
portal_type='Computer Partition'))
self.software_instance.setSlaXml("""<?xml version='1.0' encoding='utf-8'?>
<instance>
<parameter id='mode'>unique_by_network</parameter>
......@@ -635,7 +639,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by S
)
self.portal.portal_workflow._jumpToStateFor(software_instance2, 'start_requested')
software_instance2.validate()
self.tic()
self.commit()
software_instance2.SoftwareInstance_tryToAllocatePartition()
self.assertEqual(
software_instance2.getAggregate(portal_type='Computer Partition'),
......
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