diff options
author | xudan <xudan16@huawei.com> | 2017-03-22 07:51:37 +0000 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-03-25 08:59:53 +0000 |
commit | 223806ad2a5d60c9909f32f35b8cea16bf703a69 (patch) | |
tree | dfcd9c27f2876c3b185a5afb2266ca78e0e155d8 /dovetail/conf | |
parent | 02d44a030687100d0ebf68d1645536536d42cbb9 (diff) |
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 <xudan16@huawei.com>
Diffstat (limited to 'dovetail/conf')
-rw-r--r-- | dovetail/conf/cmd_config.yml | 5 | ||||
-rw-r--r-- | dovetail/conf/dovetail_config.yml | 1 | ||||
-rw-r--r-- | dovetail/conf/functest_config.yml | 6 | ||||
-rw-r--r-- | dovetail/conf/yardstick_config.yml | 1 |
4 files changed, 7 insertions, 6 deletions
diff --git a/dovetail/conf/cmd_config.yml b/dovetail/conf/cmd_config.yml index 2ae0402e..c0da5113 100644 --- a/dovetail/conf/cmd_config.yml +++ b/dovetail/conf/cmd_config.yml @@ -53,3 +53,8 @@ cli: - '-d' is_flag: 'True' help: 'Flag for showing debug log on screen.' + report: + flags: + - '--report' + - '-r' + help: 'push results to DB (e.g. --report http://192.168.135.2:8000/api/v1)' diff --git a/dovetail/conf/dovetail_config.yml b/dovetail/conf/dovetail_config.yml index 9521617e..ea8ecedc 100644 --- a/dovetail/conf/dovetail_config.yml +++ b/dovetail/conf/dovetail_config.yml @@ -2,6 +2,7 @@ result_dir: /home/opnfv/dovetail/results report_file: 'dovetail_report.txt' cli_file_name: 'cmd_config.yml' +report_dest: 'file' # OPENSTACK Credential file openrc: '/home/opnfv/dovetail/openrc.sh' 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' diff --git a/dovetail/conf/yardstick_config.yml b/dovetail/conf/yardstick_config.yml index 934cdbdc..a8191db0 100644 --- a/dovetail/conf/yardstick_config.yml +++ b/dovetail/conf/yardstick_config.yml @@ -20,5 +20,4 @@ yardstick: log: '/tmp/yardstick' store_type: 'file' file_path: 'yardstick.log' - db_url: 'http://testresults.opnfv.org/test/api/v1/results?case=%s&last=1' openrc: '/home/opnfv/openrc' |