Commit ca2cf759 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: continue to hack on cloud contract

parent 1a04de41
...@@ -390,7 +390,8 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -390,7 +390,8 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
software_release=software_release, software_release=software_release,
software_type=software_type, software_type=software_type,
partition_reference=instance_title, partition_reference=instance_title,
shared_xml='<marshal><bool>1</bool></marshal>' shared_xml='<marshal><bool>1</bool></marshal>',
project_reference=project_reference
) )
# now instantiate it on compute_node and set some nice connection dict # now instantiate it on compute_node and set some nice connection dict
...@@ -512,6 +513,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -512,6 +513,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
validation_state=['invalidated', 'validated']) validation_state=['invalidated', 'validated'])
self.assertNotEqual(contract, None) self.assertNotEqual(contract, None)
if contract.getValidationState() != 'validated':
self.assertEqual(contract.getValidationState(), "invalidated") self.assertEqual(contract.getValidationState(), "invalidated")
# HACK FOR NOW # HACK FOR NOW
......
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