aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/openstack/refstack_client
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-08-24 03:17:35 +0000
committerLinda Wang <wangwulin@huawei.com>2017-08-24 12:40:59 +0000
commit07e73e65dea6526ea835cbfe3f864a7e102f658c (patch)
tree618ef8a3fd424e093535d73b3e4a6292aaf9a6e0 /functest/tests/unit/openstack/refstack_client
parent4a228ab09e59c5dfa004df0f54df7c20eba2bc0a (diff)
Fix the tempest error when creating snapshot
Change-Id: I9682f174a835d2bdf1ef3da01e369037e5ad7247 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/tests/unit/openstack/refstack_client')
-rw-r--r--functest/tests/unit/openstack/refstack_client/test_refstack_client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/tests/unit/openstack/refstack_client/test_refstack_client.py b/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
index 5a201318..ca097483 100644
--- a/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
+++ b/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
@@ -36,7 +36,9 @@ class OSRefstackClientTesting(unittest.TestCase):
username='user', password='pass',
auth_url='http://foo.com:5000/v3', project_name='bar')
- def _create_client(self):
+ @mock.patch('functest.opnfv_tests.openstack.refstack_client.tempest_conf.'
+ 'TempestConf', return_value=mock.Mock())
+ def _create_client(self, mock_conf):
with mock.patch('snaps.openstack.tests.openstack_tests.'
'get_credentials', return_value=self.os_creds):
return RefstackClient()