summaryrefslogtreecommitdiffstats
path: root/cvp/opnfv_testapi/resources/test_handlers.py
AgeCommit message (Collapse)AuthorFilesLines
2018-07-25Move OVP web portal code to a separate repoxudan1-307/+0
The new repo for web portal is https://gerrit.opnfv.org/gerrit/dovetail-webportal JIRA: DOVETAIL-671 Change-Id: Iac085abc3d175b9a091d70d0448af56c7a6845e9 Signed-off-by: xudan <xudan16@huawei.com>
2018-06-22Fixing a typo in the API validation warning of the web portal.Georg Kunz1-2/+2
Change-Id: I0489d1e2fbd53bc90c24781a9d62140e2299c5a4 Signed-off-by: Georg Kunz <georg.kunz@ericsson.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-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-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-10-19[web-cvp]Additional columns in ‘My Results’grakiss1-1/+1
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 emailgrakiss1-9/+28
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-09-28add api&web services for cvpgrakiss1-0/+200
JIRA: DOVETAIL-512 add api&web services for cvp Change-Id: I9ef9525e980fe61dc3108035ef9a3ff8783b2697 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>