summaryrefslogtreecommitdiff
path: root/heat/tests/test_rpc_client.py
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2016-02-16 16:29:51 +0100
committerThomas Herve <therve@redhat.com>2016-04-05 20:47:25 +0200
commita709637a17166cb12e5d94944837bac6451b2851 (patch)
tree3d0172a7bf96975d42c10e26cbc3b0ea0ff4bfe1 /heat/tests/test_rpc_client.py
parentd66b5441b37a1f4f7a66886a2b46c4ded1787f6c (diff)
downloadheat-a709637a17166cb12e5d94944837bac6451b2851.tar.gz
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
Diffstat (limited to 'heat/tests/test_rpc_client.py')
-rw-r--r--heat/tests/test_rpc_client.py5
1 files changed, 5 insertions, 0 deletions
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',