From: Zane Bitter Date: Mon, 12 Aug 2013 07:51:39 +0000 (+0200) Subject: RPC Client: Add missing unit tests X-Git-Tag: 2014.1~236 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5f301b87db1a582b87d65b90334a521360c31220;p=openstack-build%2Fheat-build.git RPC Client: Add missing unit tests Change-Id: I6b54a6a2191d094f539045567260e84b962b961b --- diff --git a/heat/tests/test_rpc_client.py b/heat/tests/test_rpc_client.py index c7b8eba4..f238e6c2 100644 --- a/heat/tests/test_rpc_client.py +++ b/heat/tests/test_rpc_client.py @@ -83,6 +83,16 @@ class EngineRpcAPITestCase(testtools.TestCase): for arg, expected_arg in zip(self.fake_args, expected_args): self.assertEqual(arg, expected_arg) + def test_authenticated_to_backend(self): + self._test_engine_api('authenticated_to_backend', 'call') + + def test_list_stacks(self): + self._test_engine_api('list_stacks', 'call') + + def test_identify_stack(self): + self._test_engine_api('identify_stack', 'call', + stack_name='wordpress') + def test_show_stack(self): self._test_engine_api('show_stack', 'call', stack_identity='wordpress') @@ -101,10 +111,6 @@ class EngineRpcAPITestCase(testtools.TestCase): files={}, args={}) - def test_validate_template(self): - self._test_engine_api('validate_template', 'call', - template={u'Foo': u'bar'}) - def test_get_template(self): self._test_engine_api('get_template', 'call', stack_identity=self.identity) @@ -117,6 +123,16 @@ class EngineRpcAPITestCase(testtools.TestCase): self._test_engine_api('delete_stack', 'call', stack_identity=self.identity) + def test_validate_template(self): + self._test_engine_api('validate_template', 'call', + template={u'Foo': u'bar'}) + + def test_list_resource_types(self): + self._test_engine_api('list_resource_types', 'call') + + def test_generate_template(self): + self._test_engine_api('generate_template', 'call', type_name="TYPE") + def test_list_events(self): self._test_engine_api('list_events', 'call', stack_identity=self.identity) @@ -139,9 +155,6 @@ class EngineRpcAPITestCase(testtools.TestCase): self._test_engine_api('list_stack_resources', 'call', stack_identity=self.identity) - def test_generate_template(self): - self._test_engine_api('generate_template', 'call', type_name="TYPE") - def test_stack_suspend(self): self._test_engine_api('stack_suspend', 'call', stack_identity=self.identity)