From 223806ad2a5d60c9909f32f35b8cea16bf703a69 Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 22 Mar 2017 07:51:37 +0000 Subject: dovetail tool: Add an option cmd for pushing results into DB JIRA: DOVETAIL-373 1. add an option --report/-r to choose the report type. 2. "-r file" will store results with files. 3. "-r http://192.168.135.2:8000/api/v1" will push results into DB. The DB url can replaced by user's local DB or official DB. 4. Default report type is defined as "report_dest" in dovetail_config.yml. 5. Yardstick can't push results of one testcase into DB now, so both "-r file" and "-r http://..." will be regarded as "file". Change-Id: Ieaa017ab59c5b15235bf306ef57cdc56beb22af8 Signed-off-by: xudan --- dovetail/conf/functest_config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dovetail/conf/functest_config.yml') diff --git a/dovetail/conf/functest_config.yml b/dovetail/conf/functest_config.yml index 8195c547..c65504e2 100644 --- a/dovetail/conf/functest_config.yml +++ b/dovetail/conf/functest_config.yml @@ -7,16 +7,12 @@ functest: - 'echo test for precondition in functest' cmds: - 'functest env prepare' - - '[ -f /home/opnfv/functest/results/functest_result.json ] && cp /home/opnfv/functest/results/functest_result.json /home/opnfv/functest/functest_result.json || true' - - sed -i 's/http:\/\/testresults.opnfv.org\/test\/api\/v1/file:\/\/\/home\/opnfv\/functest\/results\/functest_result.json/g' /home/opnfv/repos/functest/functest/ci/config_functest.yaml - 'functest testcase run {{validate_testcase}} -r' - - 'cp /home/opnfv/functest/functest_result.json /home/opnfv/functest/results/functest_result.json' post_condition: - 'echo test for postcondition in functest' result: dir: '/home/opnfv/functest/results' store_type: 'file' - file_path: 'functest_result.json' + file_path: 'dump.txt' tp_path: 'tempest/tempest.log' - db_url: 'http://testresults.opnfv.org/test/api/v1/results?case=%s&last=1' openrc: '/home/opnfv/functest/conf/openstack.creds' -- cgit 1.2.3-korg