Commit 006b6880 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: check that destroying a remote instance also destroy propagated instance

parent c1161381
......@@ -1056,8 +1056,21 @@ class TestSlapOSVirtualMasterScenario(TestSlapOSVirtualMasterScenarioMixin):
remote_compute_node, project.getReference(),
connection_dict_to_check=owner_software_instance.getConnectionXmlAsDict())
# Destroy the instance, and ensure the remote one is destroyed too
self.checkRemoteInstanceUnallocation(public_person.getUserId(),
public_reference, public_instance_title,
public_server_software, public_instance_type,
remote_compute_node, project.getReference())
self.login()
# Report destruction from compute_node
self.simulateSlapgridUR(remote_server)
self.assertEqual(
"",
owner_software_instance.getAggregate("")
)
# Ensure no unexpected object has been created
# 3 allocation supply/line/cell
# 2 compute/remote node
......
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