diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-08-10 02:37:56 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-08-10 04:01:10 +0000 |
commit | e18c6f652f2874fe1df2ed61972560b6e053d500 (patch) | |
tree | 46e9a5a3cbe07a8b41a3f843570a19b842de7ee8 /functest/tests/unit/vnf/ims/test_cloudify_ims.py | |
parent | cd4716eb5fa3a12e256fba8faa75780b7398ff68 (diff) |
Add/Update tempest.conf via a specific file
Provides a convenient way to configure all params which users required.
JIRA: FUNCTEST-860
Change-Id: Iadfb704285f94530e1023ee780138f22dd672d33
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/tests/unit/vnf/ims/test_cloudify_ims.py')
-rw-r--r-- | functest/tests/unit/vnf/ims/test_cloudify_ims.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functest/tests/unit/vnf/ims/test_cloudify_ims.py b/functest/tests/unit/vnf/ims/test_cloudify_ims.py index 537c5146..f0483c69 100644 --- a/functest/tests/unit/vnf/ims/test_cloudify_ims.py +++ b/functest/tests/unit/vnf/ims/test_cloudify_ims.py @@ -13,6 +13,8 @@ import mock from functest.core import vnf from functest.opnfv_tests.vnf.ims import cloudify_ims +from snaps.openstack.os_credentials import OSCreds + class CloudifyImsTesting(unittest.TestCase): @@ -79,8 +81,11 @@ class CloudifyImsTesting(unittest.TestCase): @mock.patch('snaps.openstack.create_image.OpenStackImage.create') def test_prepare_bad_auth_url(self, *args): with self.assertRaises(Exception): - self.ims_vnf.prepare() - args[0].assert_not_called() + self.ims_vnf.image_creator( + OSCreds(username='user', password='pass', auth_url='url', + project_name='project', identity_api_version=3), + mock.Mock()) + args[0].assert_not_called() def test_prepare_missing_param(self): with self.assertRaises(vnf.VnfPreparationException): |