From a709637a17166cb12e5d94944837bac6451b2851 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Tue, 16 Feb 2016 16:29:51 +0100 Subject: Replace SD RPC polling by long RPC call This changes the way SoftwareDeployment updates its internal status. Instead of querying the deployment status in a loop using RPC client, it makes a single call, which returns once the status has been updated. Closes-Bug: #1549219 Change-Id: I484b7c8cb4a4e71817be6bea764f23b68a39b2d4 --- heat/tests/test_rpc_client.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'heat/tests/test_rpc_client.py') diff --git a/heat/tests/test_rpc_client.py b/heat/tests/test_rpc_client.py index 9ad61b1b5..ae52ccba5 100644 --- a/heat/tests/test_rpc_client.py +++ b/heat/tests/test_rpc_client.py @@ -328,6 +328,11 @@ class EngineRpcAPITestCase(common.HeatTestCase): self._test_engine_api('show_software_deployment', 'call', deployment_id=deployment_id) + def test_check_software_deployment(self): + deployment_id = '86729f02-4648-44d8-af44-d0ec65b6abc9' + self._test_engine_api('check_software_deployment', 'call', + deployment_id=deployment_id, timeout=100) + def test_create_software_deployment(self): self._test_engine_api( 'create_software_deployment', 'call', -- cgit v1.2.1