Commit 1f6bc2f3 authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: test: fixup creation of instance tree

parent 4c31b4d1
...@@ -502,7 +502,13 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest( ...@@ -502,7 +502,13 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest(
.newContent(portal_type="Instance Tree") .newContent(portal_type="Instance Tree")
instance_tree.edit( instance_tree.edit(
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
follow_up_value=project follow_up_value=project,
url_string=self.generateNewSoftwareReleaseUrl(),
title=self.generateNewSoftwareTitle(),
source_reference=self.generateNewSoftwareType(),
text_content=self.generateSafeXml(),
sla_xml=self.generateSafeXml(),
root_slave=False
) )
instance_tree.validate() instance_tree.validate()
self.portal.portal_workflow._jumpToStateFor( self.portal.portal_workflow._jumpToStateFor(
...@@ -532,6 +538,7 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest( ...@@ -532,6 +538,7 @@ class TestSlapOSInstanceTree_deleteFromRegularisationRequest(
sla_xml = instance_tree.getSlaXml() sla_xml = instance_tree.getSlaXml()
shared = instance_tree.isRootSlave() shared = instance_tree.isRootSlave()
self.assertEqual(instance_tree.getSlapState(), "start_requested") self.assertEqual(instance_tree.getSlapState(), "start_requested")
self.assertEqual(shared, False)
result = instance_tree.\ result = instance_tree.\
InstanceTree_deleteFromRegularisationRequest(person.getRelativeUrl()) InstanceTree_deleteFromRegularisationRequest(person.getRelativeUrl())
......
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