Commit 48e2f8f0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test: compatibility with _makeComplexComputeNode

parent 89c66b8b
...@@ -497,6 +497,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -497,6 +497,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project_reference=project.getReference() project_reference=project.getReference()
) )
instance_tree.requestStart(**kw) instance_tree.requestStart(**kw)
with TemporaryAlarmScript(self.portal, 'Item_getSubscriptionStatus', "'subscribed'"):
instance_tree.requestInstance(**kw) instance_tree.requestInstance(**kw)
self.start_requested_software_instance = instance_tree.getSuccessorValue() self.start_requested_software_instance = instance_tree.getSuccessorValue()
...@@ -523,6 +524,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -523,6 +524,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project_reference=project.getReference() project_reference=project.getReference()
) )
instance_tree.requestStart(**slave_kw) instance_tree.requestStart(**slave_kw)
with TemporaryAlarmScript(self.portal, 'Item_getSubscriptionStatus', "'subscribed'"):
instance_tree.requestInstance(**slave_kw) instance_tree.requestInstance(**slave_kw)
self.start_requested_slave_instance = instance_tree.getSuccessorValue() self.start_requested_slave_instance = instance_tree.getSuccessorValue()
...@@ -549,6 +551,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -549,6 +551,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project_reference=project.getReference() project_reference=project.getReference()
) )
instance_tree.requestStop(**kw) instance_tree.requestStop(**kw)
with TemporaryAlarmScript(self.portal, 'Item_getSubscriptionStatus', "'subscribed'"):
instance_tree.requestInstance(**kw) instance_tree.requestInstance(**kw)
self.stop_requested_software_instance = instance_tree.getSuccessorValue() self.stop_requested_software_instance = instance_tree.getSuccessorValue()
...@@ -576,6 +579,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -576,6 +579,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project_reference=project.getReference() project_reference=project.getReference()
) )
instance_tree.requestStop(**kw) instance_tree.requestStop(**kw)
with TemporaryAlarmScript(self.portal, 'Item_getSubscriptionStatus', "'subscribed'"):
instance_tree.requestInstance(**kw) instance_tree.requestInstance(**kw)
kw['state'] = 'destroyed' kw['state'] = 'destroyed'
...@@ -607,6 +611,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -607,6 +611,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
project_reference=project.getReference() project_reference=project.getReference()
) )
instance_tree.requestStop(**kw) instance_tree.requestStop(**kw)
with TemporaryAlarmScript(self.portal, 'Item_getSubscriptionStatus', "'subscribed'"):
instance_tree.requestInstance(**kw) instance_tree.requestInstance(**kw)
kw['state'] = 'destroyed' kw['state'] = 'destroyed'
......
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