diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-22 14:35:53 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-06-22 19:06:18 +0200 |
commit | 9ef0bcbeb22ca70ff2ceb750c08fb24e46a9d0ea (patch) | |
tree | b351c0d1bda3706a5ffde9aa3775fe1dae48f9c4 /functest/tests/unit/openstack/tempest/test_conf_utils.py | |
parent | b2824f4dc2f32731667e2cf511635dc885d08be9 (diff) |
Update tempest to inherit from VmReady1
It also copies tempest.conf due to side effects raised by
Barbican plugins.
Change-Id: Ie87680f5d2e68527a5a61aac302838afc339dde8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/openstack/tempest/test_conf_utils.py')
-rw-r--r-- | functest/tests/unit/openstack/tempest/test_conf_utils.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/functest/tests/unit/openstack/tempest/test_conf_utils.py b/functest/tests/unit/openstack/tempest/test_conf_utils.py index 6f44337c9..1585cac09 100644 --- a/functest/tests/unit/openstack/tempest/test_conf_utils.py +++ b/functest/tests/unit/openstack/tempest/test_conf_utils.py @@ -14,41 +14,12 @@ import unittest import mock from functest.opnfv_tests.openstack.tempest import conf_utils -from functest.opnfv_tests.openstack.tempest import tempest from functest.utils import config class OSTempestConfUtilsTesting(unittest.TestCase): # pylint: disable=too-many-public-methods - @mock.Mock('os_client_config.make_shade') - def test_create_res_missing_net_dic(self, *mock_args): - # pylint: disable=unused-argument - tempest_resources = tempest.TempestResourcesManager() - with self.assertRaises(Exception) as context: - tempest_resources.create() - msg = 'Failed to create private network' - self.assertTrue(msg in context.exception) - - @mock.Mock('os_client_config.make_shade') - def test_create_res_missing_image(self, *mock_args): - # pylint: disable=unused-argument - tempest_resources = tempest.TempestResourcesManager() - - with self.assertRaises(Exception) as context: - tempest_resources.create() - msg = 'Failed to create image' - self.assertTrue(msg in context.exception, msg=str(context.exception)) - - @mock.Mock('os_client_config.make_shade') - def test_create_res_missing_flavor(self, *mock_args): - # pylint: disable=unused-argument - tempest_resources = tempest.TempestResourcesManager() - with self.assertRaises(Exception) as context: - tempest_resources.create() - msg = 'Failed to create flavor' - self.assertTrue(msg in context.exception, msg=str(context.exception)) - @mock.patch('subprocess.check_output') def test_create_rally_deployment(self, mock_exec): self.assertEqual(conf_utils.create_rally_deployment(), None) |