]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
RPC Client: Add missing unit tests
authorZane Bitter <zbitter@redhat.com>
Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 12 Aug 2013 07:51:45 +0000 (09:51 +0200)
Change-Id: I6b54a6a2191d094f539045567260e84b962b961b

heat/tests/test_rpc_client.py

index c7b8eba4a00ae65c8202fce1751ee261d9377627..f238e6c2b419f1c495e5bac88fa46b52a6d87e45 100644 (file)
@@ -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)