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
...@@ -510,12 +511,13 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -510,12 +511,13 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
portal_type="Cloud Contract", portal_type="Cloud Contract",
default_destination_section_uid=person.getUid(), default_destination_section_uid=person.getUid(),
validation_state=['invalidated', 'validated']) validation_state=['invalidated', 'validated'])
self.assertNotEqual(contract, None) self.assertNotEqual(contract, None)
self.assertEqual(contract.getValidationState(), "invalidated") if contract.getValidationState() != 'validated':
self.assertEqual(contract.getValidationState(), "invalidated")
# HACK FOR NOW
contract.validate() # HACK FOR NOW
contract.validate()
self.tic() self.tic()
self.login(person_user_id) self.login(person_user_id)
......
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