[cvp-web] Bugfix:return 500 when upload a tarball file with no results.json 91/47391/4
authorgrakiss <grakiss.wanglei@huawei.com>
Fri, 17 Nov 2017 06:34:15 +0000 (06:34 +0000)
committerLeo wang <grakiss.wanglei@huawei.com>
Mon, 20 Nov 2017 02:35:45 +0000 (02:35 +0000)
commit29547a92197f88a732420761ee72d92dcc4b9972
tree8e7d373d51de43d966e466e791c6541b16b8eb46
parent2b090511832f1898f7d15cc33a6b9b20a8d88e07
[cvp-web] Bugfix:return 500 when upload a tarball file with no results.json

JIRA: DOVETAIL-558

The Web portal will return 500 code when upload a tarball file with no results.json
When all test cases failed or report with wrong DB url, there may be no results.json.
Check this and alert users instead of returning 500 status code.

Change-Id: Ie13d9c3c62044c525f5dbb3fca9b6123d0b5acce
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
cvp/3rd_party/static/testapi-ui/components/application/application.html
cvp/3rd_party/static/testapi-ui/components/results/resultsController.js
cvp/opnfv_testapi/resources/result_handlers.py