summaryrefslogtreecommitdiffstats
path: root/cvp/opnfv_testapi
AgeCommit message (Collapse)AuthorFilesLines
2018-06-07Add improvements to OVP directory and logo uploadEddie Arrage2-0/+47
- Formatting changes to directory on home page based on OPNFV marketing - Updated branding guide link - Added test_id field to mongo applications collection to associate to approved results for directory - Set Test ID from user accounts with administrator role in Applications view - Provide file upload function for administrator to post company logos for OVP directory - Company logos are stored and served through tornado from cvp-cvpapi container rather than cvp-web JIRA: DOVETAIL-663 JIRA: DOVETAIL-664 Change-Id: I1226b42883afa2ea2eb5551e3836211abbb94b20 Signed-off-by: Eddie Arrage <eddie.arrage@huawei.com>
2018-04-26Extend web portal to show if API exemption was used during a test runchenjiankun1-1/+31
JIRA: DOVETAIL-634 The OVP web port needs to read from the test results if the strict API response validation exemption was used or not and show it correspondingly. Detailed description: As discussed on the Dovetail call on 2018-04-11, the web portal should show if API response validation was enabled or disabled. The information if API response validation was enabled or disabled is to be determined based on the dovetail.log file. If API response validation was disabled,** the log file contains the line "Strict API response validation DISABLED.". Upon uploading a result tar-package, the web portal should extract this information from the log file, store it in the database, and display it as follows: This indication shall be displayed along with the test summary on the Test Run Results page as either: "API response validation enabled" or "API response validation disabled" For clarification: API response validation is enabled by default. API response validation is disabled only if the --no-api-validation command line option is given. Change-Id: Ifacb1eb2127cc8dc6364c98dead1217aeedfd359 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2018-01-26Bugfix: Cannot change SUT version in the new uploaded testchenjiankun1-3/+13
If we upload a new test, we can't modify the SUT version. The reason is we must predefine the model. Change-Id: I8822b078c25a015dd4cc4becfdaae141aed66359 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2018-01-24Don't allow user change SUT version to None after submittingchenjiankun1-1/+7
We don't allow SUT version to be None when submitting test. So we also not allow user to change it to Nonw after submitting. In this patch, I also make the result table self-adaption. Change-Id: I5c391592dcbdbd9eb8697e44d7bb5dda41431bd6 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-12-29[ovp-web] Add SUT version number to OVP portalchenjiankun1-0/+5
JIRA: DOVETAIL-572 We currently have a label column in the OVP test result view. This allows users to attach a custom label field to their results. It is at the users discretion to fill out this field. We need a separate SUT version column to track the product version number being submitted for official review. The field can be left blank when users upload and share results in a private manner. However, the OVP portal must check that this new 'SUT version' field is populated before results are officially submitted for review. An error message prompting the user to fill out this field if it is blank must be implemented when users submit results for review. Change-Id: I1ca915423a56e8173a3a13f1b84b066cf91d9291 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-12-18Bugfix: pass/not pass filter not work in result-report pagegrakiss1-1/+8
The reason is there are some conflict with jquery.js and ng-model. So ng-model not work. Change-Id: I01ccd0e297d1a89aff8f78d7fb0a63a0e2114f63 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-27[cvp-web] Admin can approve and not approve resultsgrakiss1-5/+33
JIRA: DOVETAIL-562 According to the CVP workflow, once a result has been submitted to review, the admin will send email to all reviewers to get the comment (+1 / -1). Enable admin to approve/not approve the result after he gets the feedback from all reviewers. Otherwise, the result will always be in 'review' status. Change-Id: Ic3ace3c7284c70e9a8186d03e6cd88c91ecc76f9 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-20[cvp-web] Can't submit the same results to review from different usersgrakiss1-16/+12
JIRA: DOVETAIL-560 Can't submit the same results to review from different users. Change-Id: I4a3dcc2dc8a817653ac9da6f93722659e04c89a1 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-20[cvp-web] Bugfix:return 500 when upload a tarball file with no results.jsongrakiss1-1/+6
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>
2017-11-09[cvp-web] Bugfix: use '_id' as the primary key of the data rather than the ↵grakiss1-6/+22
'Test ID' JIRA: DOVETAIL-554 It allows different users to upload the same results now. So the 'Test ID' is not unique in this situation. Use '_id' as the primary key which can uniquely identify one data. Change-Id: I852ee116f36a6a86e9b4350183e39ee00f8b99de Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-09[cvp-web] Bugfix: Results shared by email are not shown on non-reviewer's pagesgrakiss1-11/+15
JIRA: DOVETAIL-551 The CVP web portal can support share with name and share with email address. But when sharing with email, the pages of non-reviewers will not show the results shared by others. Change-Id: I94451448cc60d1f7a3472d756c502200757a16a8 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-01[cvp-web] Show some SUT hardware info in 'My Results'grakiss3-0/+145
[cvp-web] Show SUT endpoint in web page JIRA: DOVETAIL-541 JIRA: DOVETAIL-547 Show some SUT hardware info that dovetail concern in 'My Results' web page. Show the info of all endpoints get from Dovetail tool in the web page. Change-Id: Ibc465396e17b7c22678e3948fa2f659cbff6f323 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-11-01[web-cvp] Trigger an email when admin submit an application formgrakiss2-1/+84
JIRA: DOVETAIL-542 Trigger an email to cvp@opnfv.org when admin submit an application form. Change-Id: Ie73d5a6380b5f5d1b0507564dc1f067047284f99 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-10-19[web-cvp]Additional columns in ‘My Results’grakiss2-2/+4
JIRA: DOVETAIL-532 1. original filename 2. user editable label Change-Id: I1566cecb3d8ceacc14167bb2fb7fa41508f293be Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-10-20[web-cvp]share result by emailgrakiss3-14/+42
JIRA: DOVETAIL-529 It may be easier to get other people's email than his user id Change-Id: Ia5f9aa72d3c79bd3f5e69dad98b3f188cdaafc3d Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-10-12[web-cvp]add a api to fecth logs of backend apigrakiss1-0/+7
JIRA: DOVETAIL-525 provide a easy way to fetch logs of backend apis Change-Id: I72054a6e155e6970254ed391dfa8b25943eceb35 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-09-28add api&web services for cvpgrakiss68-0/+6221
JIRA: DOVETAIL-512 add api&web services for cvp Change-Id: I9ef9525e980fe61dc3108035ef9a3ff8783b2697 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>