From 39942dc9c5bc152a6ed20534755cc0dc38d85ede Mon Sep 17 00:00:00 2001 From: Leo Wang Date: Thu, 22 Sep 2016 21:56:54 -0400 Subject: Use template to unify commands in functest/yardstick JIRA: DOVETAIL-19 1. use jinja2 to unify commands in config files 2. it simplify the process of test execution, put the dissimilarity in config 3. add precondition/postcondition for functest/yardstick config Change-Id: Ib996b11ea065b61910b34b78191bb7b1ffd92e59 Signed-off-by: Leo Wang --- scripts/conf/dovetail_config.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts/conf/dovetail_config.yml') diff --git a/scripts/conf/dovetail_config.yml b/scripts/conf/dovetail_config.yml index 57d6e894..901988f8 100644 --- a/scripts/conf/dovetail_config.yml +++ b/scripts/conf/dovetail_config.yml @@ -3,7 +3,17 @@ work_dir: /home/opnfv/dovetail result_dir: /home/opnfv/dovetail/results report_file: 'dovetail_report.txt' -extra_config: +# used for testcase cmd template in jinja2 format +# we have two variables available now +# parameter path, use this path to walk through python object and get value +# and the python object is "testcase" object by hard-coded +parameters: + - name: testcase + path: '("name",)' + - name: script_testcase + path: '("scripts", "testcase")' + +include_config: - functest_config.yml - yardstick_config.yml -- cgit 1.2.3-korg