diff options
author | Kanagaraj Manickam <mkr1481@gmail.com> | 2015-12-09 22:51:54 +0530 |
---|---|---|
committer | Kanagaraj Manickam <mkr1481@gmail.com> | 2016-05-09 14:39:49 +0530 |
commit | 00d3677615b0587fc05e3043ee0a3a10d237c780 (patch) | |
tree | 552b755d7df030953a5c802966798d90809c308f /heat/tests/clients/test_cinder_client.py | |
parent | 6c893e2e0244ee6e5c35e0e927b4be451ee7439f (diff) | |
download | heat-00d3677615b0587fc05e3043ee0a3a10d237c780.tar.gz |
Enable client plugin to support dynamic api version
It helps client plugin to create client based on the required api
version given at run time instead of hard-coded version.
implements blueprint enable-client-plugin-to-use-a-given-service-api-version
Change-Id: I1cf3cdf498b7a97b6aa262eb3012edda8ad2aaaf
Diffstat (limited to 'heat/tests/clients/test_cinder_client.py')
-rw-r--r-- | heat/tests/clients/test_cinder_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/clients/test_cinder_client.py b/heat/tests/clients/test_cinder_client.py index 9d90a2376..13a84bde5 100644 --- a/heat/tests/clients/test_cinder_client.py +++ b/heat/tests/clients/test_cinder_client.py @@ -31,7 +31,7 @@ class CinderClientPluginTest(common.HeatTestCase): con = utils.dummy_context() c = con.clients self.cinder_plugin = c.client_plugin('cinder') - self.cinder_plugin._client = self.cinder_client + self.cinder_plugin.client = lambda: self.cinder_client def test_get_volume(self): """Tests the get_volume function.""" |