summaryrefslogtreecommitdiff
path: root/heat/tests/openstack/cinder/test_volume_utils.py
diff options
context:
space:
mode:
authorrabi <ramishra@redhat.com>2018-03-27 08:57:55 +0530
committerrabi <ramishra@redhat.com>2018-06-29 09:37:44 +0530
commit72f18efe02df4056a4c22576b4fffb97a5e6ba2e (patch)
tree068cd4fbef2f07f58a2d193fb418fda877597789 /heat/tests/openstack/cinder/test_volume_utils.py
parentbdd43d1d8cb0b20125cb543bdd087d1d58a66884 (diff)
downloadheat-72f18efe02df4056a4c22576b4fffb97a5e6ba2e.tar.gz
Change NovaClientPlugin to use MicroversionMixin
We don't need to maintain a list of versions supported in nova client plugin. Supporting a latest microversion means supporting all versions earlier. Change-Id: I5df1ccd3ebf47b0772c903dbae0613b4f8041634 Story; #1764757 Task: 17358
Diffstat (limited to 'heat/tests/openstack/cinder/test_volume_utils.py')
-rw-r--r--heat/tests/openstack/cinder/test_volume_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/openstack/cinder/test_volume_utils.py b/heat/tests/openstack/cinder/test_volume_utils.py
index db3f17826..5e3bb05b9 100644
--- a/heat/tests/openstack/cinder/test_volume_utils.py
+++ b/heat/tests/openstack/cinder/test_volume_utils.py
@@ -34,7 +34,7 @@ class VolumeTestCase(common.HeatTestCase):
self.cinder_fc.volume_api_version = 2
self.patchobject(cinder.CinderClientPlugin, '_create',
return_value=self.cinder_fc)
- self.patchobject(nova.NovaClientPlugin, '_create',
+ self.patchobject(nova.NovaClientPlugin, 'client',
return_value=self.fc)
self.cinder_fc.volumes = mock.Mock(spec=self.cinder_fc.volumes)
self.fc.volumes = mock.Mock()
@@ -56,7 +56,7 @@ class VolumeTestCase(common.HeatTestCase):
update=False,
extra_create_server_volume_mocks=[]):
if not update:
- nova.NovaClientPlugin._create.return_value = self.fc
+ nova.NovaClientPlugin.client.return_value = self.fc
result = [fva]
for m in extra_create_server_volume_mocks: