aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-19 21:14:06 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-19 21:14:06 +0100
commitf45009936ef29cef3a369f8dd45539a1186e85d9 (patch)
treed2710d5e2122630f032801b6b096dd9db3b60751 /functest
parentedac6a883e0b80724140305258649b4891a2d14c (diff)
Remove deprecated monkey patches
OpenStack utils are being removed. Change-Id: I2a41297034654f678afa5a7a818961a4cd0cee73 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest')
-rw-r--r--functest/tests/unit/vnf/epc/test_juju_epc.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/functest/tests/unit/vnf/epc/test_juju_epc.py b/functest/tests/unit/vnf/epc/test_juju_epc.py
index b3eef862..6b413706 100644
--- a/functest/tests/unit/vnf/epc/test_juju_epc.py
+++ b/functest/tests/unit/vnf/epc/test_juju_epc.py
@@ -52,15 +52,7 @@ class JujuEpcTesting(unittest.TestCase):
return_value={'tenant_images': 'foo',
'orchestrator': self.orchestrator,
'vnf': self.vnf, 'vnf_test_suite': '',
- 'version': 'whatever'}), \
- mock.patch('functest.utils.openstack_utils.get_keystone_client',
- return_value='test'), \
- mock.patch('functest.utils.openstack_utils.get_glance_client',
- return_value='test'), \
- mock.patch('functest.utils.openstack_utils.get_neutron_client',
- return_value='test'), \
- mock.patch('functest.utils.openstack_utils.get_nova_client',
- return_value='test'):
+ 'version': 'whatever'}):
self.epc_vnf = juju_epc.JujuEpc()
self.images = {'image1': 'url1',
@@ -70,15 +62,6 @@ class JujuEpcTesting(unittest.TestCase):
'test_vnf': {}}
@unittest.skip("It must be fixed. Please see JIRA FUNCTEST-915")
- @mock.patch('functest.utils.openstack_utils.get_keystone_client',
- return_value='test')
- @mock.patch('functest.utils.openstack_utils.get_or_create_tenant_for_vnf',
- return_value=True)
- @mock.patch('functest.utils.openstack_utils.get_or_create_user_for_vnf',
- return_value=True)
- @mock.patch('functest.utils.openstack_utils.get_credentials',
- return_value={'auth_url': 'test/v1',
- 'project_name': 'test_tenant'})
@mock.patch('snaps.openstack.create_image.OpenStackImage.create')
@mock.patch('os.system')
def test_prepare_default(self, *args):