aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-01-29 13:45:43 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-01-29 13:47:08 +0100
commitb1841c9434e08f0467d4226cbeb238d6c677adbc (patch)
tree29c38cc23b87fbe7990600a8787417bcd432685b
parent52da4424869eecd428c29a41f1699e6e00767055 (diff)
Enable epc unit tests
It adds the missing __init__.py to activate vepc unit tests. They are disabled because they are currently false (otherwise it would block next changes). Change-Id: I65b32490efde4cc8f6b3d9e6ee19257dcf02c2dd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/vnf/epc/juju_epc.py5
-rw-r--r--functest/tests/unit/vnf/epc/__init__.py0
-rw-r--r--functest/tests/unit/vnf/epc/test_juju_epc.py1
3 files changed, 4 insertions, 2 deletions
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py
index 3146b935c..aec008532 100644
--- a/functest/opnfv_tests/vnf/epc/juju_epc.py
+++ b/functest/opnfv_tests/vnf/epc/juju_epc.py
@@ -145,8 +145,9 @@ class JujuEpc(vnf.VnfOnBoarding):
write_config(self.filename, CLOUD_TEMPLATE, **cloud_data)
if self.snaps_creds.identity_api_version == 3:
- append_config(self.filename, '{}'.format(
- os_utils.get_credentials()['project_domain_name']),
+ append_config(
+ self.filename, '{}'.format(
+ os_utils.get_credentials()['project_domain_name']),
'{}'.format(os_utils.get_credentials()['user_domain_name']))
self.__logger.info("Upload some OS images if it doesn't exist")
diff --git a/functest/tests/unit/vnf/epc/__init__.py b/functest/tests/unit/vnf/epc/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/functest/tests/unit/vnf/epc/__init__.py
diff --git a/functest/tests/unit/vnf/epc/test_juju_epc.py b/functest/tests/unit/vnf/epc/test_juju_epc.py
index d1e115e70..b3eef8622 100644
--- a/functest/tests/unit/vnf/epc/test_juju_epc.py
+++ b/functest/tests/unit/vnf/epc/test_juju_epc.py
@@ -69,6 +69,7 @@ class JujuEpcTesting(unittest.TestCase):
'vnf': {},
'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',