aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi
AgeCommit message (Collapse)AuthorFilesLines
2020-10-20Fix the format issuesHEADopnfv-10.0.0stable/jermamasterKanagaraj Manickam4-8/+14
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Id0058788d8d2d8fb8a1fa0a7c43fc3c1731d73df
2020-10-19updated login api url mapping and validationKanagaraj Manickam2-1/+5
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I97e36ec01e1975c6edd61c8b6215f60573d29254
2020-10-19Updated naming conventions for login apiKanagaraj Manickam1-4/+4
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I5740c9b2e6acfadd2809b66b722e4f0be0d7c09d
2020-10-19updated code alignmentKanagaraj Manickam2-2/+1
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I67213176adffdd328513556cca4298a9b2642f10
2020-10-19updated logout api validationsKanagaraj Manickam1-2/+2
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I60bdd02743fb56b439b539869406484bbed8d445
2020-10-19Added Mem-cache for token validationKanagaraj Manickam1-1/+2
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I63507882bac7f4fa97983b0ed883e23ae8c1a236
2020-10-19Added Token Validation for test upload apiKanagaraj Manickam1-0/+4
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I4e4d4c5fdbb16ebf79a039039bd16fa59dbb04e1
2020-10-19Added Test Upload ApiKanagaraj Manickam2-0/+101
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ib15d3ad5eba97d6b1a601dc2cfaa71d9815ccde4
2020-10-19Fixed login response issueKanagaraj Manickam1-1/+1
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ic1e8bce8fc6391c1d3b6257056fe10079e31ed94
2020-10-19set Token to empty after logoutKanagaraj Manickam1-0/+1
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ifa36bb1611b08945a7a72964dd14a59a45638047
2020-10-19Added memcache for token validationKanagaraj Manickam1-2/+3
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I4503cb02fe146f92e3d5d08f123628900522335b
2020-10-19Added upload file validationKanagaraj Manickam1-0/+4
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I2e0b2d874934423719ee94cefac45d20d5f798b1
2020-10-19Added token validation for result uploadKanagaraj Manickam1-0/+4
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I1a9faf804d028c32896f915c4f9fb52ed2d4aace
2020-10-19Added Result Upload apiKanagaraj Manickam2-0/+94
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I34cc6508e2e04c50bed65c06ccfca785758a8757
2020-10-19Addd Mem-cache for token validationKanagaraj Manickam1-1/+2
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I070d9ad49337741049ab6442df9ff2d8bc98d257
2020-10-19Added Token Validation before logoutKanagaraj Manickam1-0/+3
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I75062a31f17e628215aa7c0d8768e5be486a515e
2020-10-19Added Logout Dovetail-WebportalKanagaraj Manickam2-1/+8
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I298d65141b4c9a795744c7f59e43ca5662103895
2020-10-19Added Mem-cache for storing tokenKanagaraj Manickam1-2/+5
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ia3a3683a6e635c86447ca6bd96c7416d73febf7d
2020-10-19Added Token Generation while loginKanagaraj Manickam1-0/+3
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I8acbcf4ce21adfb8c82ec1be7577ed9b5acd094c
2020-10-19Added Validation for Invalid CredentilasKanagaraj Manickam1-0/+3
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: I35b35773847ecc9175ca634cb9ae1a341c9c2eeb
2020-10-19Added Login feild validationsKanagaraj Manickam2-0/+14
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ifc9925d3ad8da973804919746902fd7754f98abd
2020-10-19Added Login Dovetail-WebportalKanagaraj Manickam2-1/+23
Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com> Change-Id: Ife1a2b86bb72e7fbf86df61c835694e4a963fde8
2020-02-11Updated portal for OVP 2019.12 releaseovp-3.0.1Lincoln Lavoie2-9/+36
* Fixed errors for VNF results * Cleaned up couple of other errors * Added TOSCA test case requirements. * Fixed typos and white space issues. * Corrected flake8 and weblint failures Signed-off-by: Lincoln Lavoie <lylavoie@iol.unh.edu> Change-Id: I911f294725c353d1388f44f79814cadc31e21574
2019-08-21API validation only for NFVI and gets from results.jsonxudan1-14/+35
Change-Id: Ia84d67098d7fc2f5e8da88900a2a8846f718f085 Signed-off-by: xudan <xudan16@huawei.com>
2019-05-09Merge "Add License for Dovetail webportal"Dan Xu16-0/+144
2019-04-29Add License for Dovetail webportalxudan16-0/+144
Add license for all files in this repo except following: 1. all .png, .gif and .json files 2. all empty __init__.py files 3. MANIFEST.in 4. .htmllintrc 5. node-requirements.txt 6. update/README.md 7. opnfv_testapi/ui/auth/rsa.pem 8. opnfv_testapi/tornado_swagger/README.md 9. 3rd_party/static/testapi_ui/favicon.ico 10. 3rd_party/static/onap_ui/favicon.ico Change-Id: I6329d09b67cdafaa545cea7894e5edf3466d0009 Signed-off-by: xudan <xudan16@huawei.com>
2019-04-24Bug fix for ONAP/OVP portalsPanagiotis Karalis2-7/+28
During portal review, some errors have been noticed and fixed. - 'no role', In the 'My Results' page are displayed also results from other users. - 'user,reviewer' role, In the 'My Results' page are appeared all results and not only for the current user. - 'administrator' role, The applications are not appeared in the application page - 'reviewer' role, Reviewers cannot submit votes and after few seconds a 'time out' is received. Change-Id: Ia9bc3c4fdcac1b37ac03adff64ff689ca2428c0f Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2019-04-15Update the behavior of roles for OVP/ONAP portalsPanagiotis Karalis1-1/+1
The behavior of portals' roles are updated according to CVC decisions. The behavior will be: * no roles - the person can upload results and share results to other users, but can not submit an application/results for review * "user" role - the person can submit the application/results fore review. To have this role, the person MUST have signed the participation agreement through docusign. * "reviewer" role - the person can see applications / results submitted to review, and can vote (+1 / -1) on those results as part of the review process. Votes are recorded. * "admin" role - the person can approve applications for public listing, etc. Final gatekeeper for the website, etc. Responsible to ensure processes are followed, etc. Change-Id: Ieca55725378c85f544eeea4390046bae456ee1a3 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2019-04-10Enhanced OVP Web PortalPanagiotis Karalis2-5/+1
The OVP web portal is updated with some improvements. Those improvements are focused on the styling part of the portal as well as on the introduction of new functions related to the reviews, applications and the generally flow. JIRA: DOVETAIL-670 JIRA: DOVETAIL-760 Change-Id: Ic5ca90eaaee36de43486ff55ad9aa788136587c6 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2019-03-20Enable Web Portal for ONAP resultspkaralis11-53/+388
The web portal needs to be able to read test results of the ONAP compliance program and display them. In order for the above goal to be achieved, the following two parts should be impacted: 1- A new front-end should be prepared in order to handle and display the results 2- The REST API should be extended in order to support the aforementioned operation. JIRA: DOVETAIL-669 Change-Id: I36bbb6e602a67020d7e27aedbfc776f5cf4f3dc3 Signed-off-by: pkaralis <pkaralis@intracom-telecom.com> Co-Authored-By: Stamatis Katsaounis <mokats@intracom-telecom.com>
2019-03-08Prepare Web Portal for ONAP integrationStamatis Katsaounis1-10/+0
This patch applies all the required changes in order to support a second web portal container with the onap web portal content. Change-Id: I2f59776313bf2067dbdfb04445620b5241716ebb Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2019-02-13Fix lint and identation issues and remove unwanted parts of codeStamatis Katsaounis1-3/+3
Change-Id: Ic294155075962f0b78e3102cff993ee2421ad99e Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-11-28Improve Docker deploymentStamatis Katsaounis4-6/+5
JIRA: DOVETAIL-755 This patch improves Docker deployment. It removes the extra unwanted container. In addition, it removes unused files. Finally, it fixes the issue of python install where the static files of swagger where not installed inside the api container. Change-Id: Id74c88ab77182ed233f0eedad39ff8da245bb3dd Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-11-01Fix Tox related issuesStamatis Katsaounis4-13/+14
This patch: - Fixes W504 and ignores W503, based on new rules for breaking with binary operators - No longer ignores lines bigger than 80 characters. - Comments out a specific unit test beucase it has an abnormal behavior. Sometimes, it passes while other it does not. It is not code related problem, but it results in false positive negative votes from jenkins-ci. Change-Id: I02d76daf2eb64621a599e6179ca4912b63b59d88 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-18Make uploaded company logos persistentovp-2.0.0Stamatis Katsaounis1-2/+2
JIRA: DOVETAIL-741 This patch make uploaded company logos from administrator persistent by saving them to a permanent docker volume, mounted to a specific path inside api container. Change-Id: I0b0ef66cc2b3761863a2f58da0196d302d4b5ade Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-10-04Revive unit tests and flake8 of webportalStamatis Katsaounis11-9/+29
JIRA: DOVETAIL-742 This patch revives unit test and flake8 tests of webportal. In addition, it fixes errors and enables handling of some uris which were forgotten. Change-Id: I8225c7ca08a3c97b6e77f00490defc91046a2dd6 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-08-30Disable Community Results page and restrict access to resultsStamatis Katsaounis1-0/+4
to logged in users JIRA: DOVETAIL-736 This patch disables the Community Results page. Furthermore, allows only logged in users to fetch results from the rest api. Finally, fixes a minor bug on the javascript side, where the name of the logged in user is stored. Change-Id: Iedf1f170746501455662dc7e1d01ae0508f79488 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-08-28Allow only owner of tests and administrator to delete testsStamatis Katsaounis1-2/+16
JIRA: DOVETAIL-734 This patch prevents anonymous users and not-owners to delete tests of others. Change-Id: Iaaf1d79db05216963705ab29bd2627bb19f3294d Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-08-24Resolve internal errors 500Stamatis Katsaounis1-3/+13
* Check that a user uploaded a file and return appropriate error if not * Check that a file is a valid gzip file and return appropriate error if not Change-Id: I17dd1ee459d06687156b7fd36f27353325a0b737 Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
2018-07-27Showing OVP version on "my results" pageGeorg Kunz1-1/+9
Adding an "OVP Version" column to the "my results" page. JIRA: DOVETAIL-708 Change-Id: Id9a9228002f3be88fda8c71aedf2f5abe24d833d Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2018-07-06Move all web portal code to the new repo dovetail-webportalxudan71-0/+6640
This is only the first step to simply copy the file here. There still need some more work to make sure all work well. All the changes will be submitted with other patches to make it easily to review. JIRA: DOVETAIL-671 Change-Id: I64d32a9df562184166b6199e2719f298687d1a0a Signed-off-by: xudan <xudan16@huawei.com>