unify functest_yaml obtain process 13/20113/2
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 31 Aug 2016 02:22:33 +0000 (10:22 +0800)
committerJose Lausuch <jose.lausuch@ericsson.com>
Fri, 2 Sep 2016 07:54:09 +0000 (07:54 +0000)
commit4a803db9fa32c42559306da22beaab437d664fdc
tree0984ed984f3397f4f0a695353c069d472efbc389
parentcc315c6534d27c24fe543b33e2ac9f66cda83d38
unify functest_yaml obtain process

functest_yaml is needed in almost all of the testcases, the obtain process is the same:
with open(os.environ["CONFIG_FUNCTEST_YAML"]) as f:
functest_yaml = yaml.safe_load(f)
f.close()
abstract a method to unify the process, and provide the interface

JIRA: FUNCTEST-447

Change-Id: I96a9a9962d7b466f10bbd3b5ab2495957524e22a
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
(cherry picked from commit f4d0a05011e961a363c6d99522684ecdeb959716)
14 files changed:
ci/prepare_env.py
cli/commands/cli_os.py
cli/commands/cli_testcase.py
cli/commands/cli_tier.py
testcases/OpenStack/rally/run_rally-cert.py
testcases/OpenStack/tempest/run_tempest.py
testcases/OpenStack/vPing/vping_util.py
testcases/features/copper.py
testcases/features/doctor.py
testcases/features/domino.py
testcases/features/promise.py
testcases/vnf/vIMS/vIMS.py
testcases/vnf/vRNC/parser.py
utils/functest_utils.py