Use result_collection_api to store test result 11/2411/5
authorQiLiang <liangqi1@huawei.com>
Sat, 10 Oct 2015 09:39:22 +0000 (17:39 +0800)
committerHou Jingwen <houjingwen@huawei.com>
Fri, 16 Oct 2015 04:01:02 +0000 (04:01 +0000)
commit6bf31ef144d025d47dd8fb3770190b3fb42eed2d
treecdec869a5b36e33fee7e3aacee9f3eb54c14077e
parent89655940e65a7e3fabe4fe8a2ca49527a3094221
Use result_collection_api to store test result

Execute a sample task file from Yardstick, push the test results
to MongodB provided by Releng using the common result api
provided by Functest.

Usage:

0) install yardstick

1) config yardstick
mkdir /etc/yardstick
cat << EOF >> /etc/yardstick/yardstick.conf
[DEFAULT]
debug = True
dispatcher = http

[dispatcher_http]
timeout = 5
target = http://213.77.62.197/results
EOF

2) run test
yardstick task start sample/fio.yaml

3) fetch result from remote result_collection_api
curl "http://213.77.62.197/results?case=Fio&installer=compass"

JIRA: YARDSTICK-132

Change-Id: I0996c6487c1900704380feb895555057a3f184e9
Signed-off-by: QiLiang <liangqi1@huawei.com>
yardstick/benchmark/runners/base.py
yardstick/dispatcher/base.py
yardstick/dispatcher/file.py
yardstick/dispatcher/http.py