unify functest_yaml obtain process 45/19945/3
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 31 Aug 2016 02:22:33 +0000 (10:22 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 31 Aug 2016 15:20:19 +0000 (23:20 +0800)
commitf4d0a05011e961a363c6d99522684ecdeb959716
tree4fe3d75e31cb3f9e56bffe37cb98e79ea9851c87
parentfe5d0f8628b8e0defdfc6e3b0e4556b46311a2f9
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>
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