aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils/functest_utils.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-09 15:34:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-09 15:34:36 +0000
commit5aa9bd71ba9f2e135fcb7ad05952487dc6a74eb2 (patch)
tree14c680eef31ce6c6eebb668de982296845beb9fe /functest/utils/functest_utils.py
parent8977b074eff97ce8bab359fd4cffed2b6d342b4e (diff)
parent746c1eb8b66ef38d3b21db2010cc820cb92c0293 (diff)
Merge "Move get_dict_by_test() into run_tests.py"
Diffstat (limited to 'functest/utils/functest_utils.py')
-rw-r--r--functest/utils/functest_utils.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py
index c1491855..e84a2b42 100644
--- a/functest/utils/functest_utils.py
+++ b/functest/utils/functest_utils.py
@@ -17,7 +17,6 @@ import shutil
import subprocess
import sys
-import pkg_resources
import dns.resolver
from six.moves import urllib
import yaml
@@ -135,28 +134,6 @@ def execute_command(cmd, info=False, error_msg="",
return returncode
-def get_dict_by_test(testname):
- # pylint: disable=bad-continuation
- with open(pkg_resources.resource_filename(
- 'functest', 'ci/testcases.yaml')) as tyaml:
- testcases_yaml = yaml.safe_load(tyaml)
-
- for dic_tier in testcases_yaml.get("tiers"):
- for dic_testcase in dic_tier['testcases']:
- if dic_testcase['case_name'] == testname:
- return dic_testcase
-
- LOGGER.error('Project %s is not defined in testcases.yaml', testname)
- return None
-
-
-def get_criteria_by_test(testname):
- tdict = get_dict_by_test(testname)
- if tdict:
- return tdict['criteria']
- return None
-
-
# ----------------------------------------------------------
#
# YAML UTILS