diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-08-10 08:56:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-10 08:56:10 +0000 |
commit | a91f8ca024935ad516237845fa4d83412b232b26 (patch) | |
tree | 4bb77261b75496e9e80b8fbbacc4ad5a1bd563af /functest/tests/unit/vnf | |
parent | c12e84bc3274eeabc4200575821dae1cd80ce16e (diff) | |
parent | e18c6f652f2874fe1df2ed61972560b6e053d500 (diff) |
Merge "Add/Update tempest.conf via a specific file"
Diffstat (limited to 'functest/tests/unit/vnf')
-rw-r--r-- | functest/tests/unit/vnf/ims/test_cloudify_ims.py | 9 | ||||
-rw-r--r-- | functest/tests/unit/vnf/ims/test_orchestra_ims.py | 2 |
2 files changed, 8 insertions, 3 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): diff --git a/functest/tests/unit/vnf/ims/test_orchestra_ims.py b/functest/tests/unit/vnf/ims/test_orchestra_ims.py index 21999730..5a1efc7f 100644 --- a/functest/tests/unit/vnf/ims/test_orchestra_ims.py +++ b/functest/tests/unit/vnf/ims/test_orchestra_ims.py @@ -154,7 +154,7 @@ class OrchestraImsTesting(unittest.TestCase): """Testing prepare function with bad auth url""" with self.assertRaises(Exception): self.ims_vnf.prepare() - args[0].assert_not_called() + args[0].assert_not_called() def test_prepare_missing_param(self): """Testing prepare function with missing param""" |