Commit 904651ac authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: test: fixup remote node creation

parent ea38dc37
......@@ -705,9 +705,12 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
# behaviour.
compute_node.edit(capacity_scope='open')
elif node == "remote":
remote_project = self.addProject(is_accountable=False)
compute_node = self.portal.compute_node_module.newContent(
portal_type="Remote Node",
follow_up_value=project
follow_up_value=project,
destination_project_value=remote_project,
destination_section_value=person
)
elif node == "instance":
compute_node = self.portal.compute_node_module.newContent(
......@@ -791,7 +794,10 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
partition.markBusy()
# create fake open order, to bypass Service_getSubscriptionStatus
for item in [instance_tree.getSuccessorValue(), partition.getParentValue()]:
subscrible_item_list = [instance_tree]
if partition is not None:
subscrible_item_list.append(partition.getParentValue())
for item in subscrible_item_list:
open_order = self.portal.open_sale_order_module.newContent(
portal_type="Open Sale Order",
ledger="automated",
......
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