dovetail-webportal.git
6 years agoClean HTML code 11/65311/2
Stamatis Katsaounis [Wed, 21 Nov 2018 15:11:44 +0000 (17:11 +0200)]
Clean HTML code

JIRA: DOVETAIL-753

This patch cleans the HTML code, which was in a bad state and not
maintainable.

Change-Id: Iab19a9af1835a384544f58c13ba5664723306535
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
6 years agoFix some genaral syntax errors 07/64507/2
Panagiotis Karalis [Mon, 5 Nov 2018 15:52:48 +0000 (17:52 +0200)]
Fix some genaral syntax errors

Some syntax errors have been noticed and fixed.

Change-Id: I8fd22e6c3242f0f029ed262e2eb63677bed41017
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
6 years agoDynamically fetching javascript dependencies 77/64377/2
Stamatis Katsaounis [Thu, 1 Nov 2018 10:44:50 +0000 (12:44 +0200)]
Dynamically fetching javascript dependencies

JIRA: DOVETAIL-746

This patch deletes the source code of javascript dependencies from
web portal. Furthermore, it uses npm to install them.

Change-Id: Idc40606ff9e7286aa66421cbbe05f94d7ce9f7e6
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
6 years agoFix Tox related issues 81/64381/1
Stamatis Katsaounis [Thu, 1 Nov 2018 11:00:43 +0000 (13:00 +0200)]
Fix Tox related issues

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>
6 years agoMake uploaded company logos persistent 91/63691/3 ovp-2.0.0
Stamatis Katsaounis [Thu, 18 Oct 2018 11:56:16 +0000 (14:56 +0300)]
Make uploaded company logos persistent

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>
6 years agoRevive unit tests and flake8 of webportal 57/63157/1
Stamatis Katsaounis [Thu, 4 Oct 2018 09:42:16 +0000 (12:42 +0300)]
Revive unit tests and flake8 of webportal

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>
6 years agoUpdating the links on the web portal to the latest versions. 15/62915/1
Georg Kunz [Mon, 24 Sep 2018 20:52:55 +0000 (22:52 +0200)]
Updating the links on the web portal to the latest versions.

Change-Id: I45e3f49e0cb82ac3964b078f349bd8f4e8069dec
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoDecreasing font size of OVP web portal heading 93/62693/2
Georg Kunz [Fri, 21 Sep 2018 08:34:58 +0000 (10:34 +0200)]
Decreasing font size of OVP web portal heading

Decreasing the font size of the main heading on Bradon's request.

Change-Id: Ie0498f0ebb1c85f6ea73b4230d72715f717f4ae3
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoUpdate marketing message on web portal for release 37/62537/5
Georg Kunz [Wed, 19 Sep 2018 07:25:31 +0000 (09:25 +0200)]
Update marketing message on web portal for release

Updating the web portal for release:

* marketing message
* 2018.09 badge
* link to updated participation form

Change-Id: Iac2576eafdf88c5399205c1877b1632a13827fa4
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoMerge "Update webportal testcases.json file"
Dan Xu [Fri, 14 Sep 2018 01:23:15 +0000 (01:23 +0000)]
Merge "Update webportal testcases.json file"

6 years agoUpdate webportal testcases.json file 71/62171/1
xudan [Thu, 13 Sep 2018 04:11:24 +0000 (00:11 -0400)]
Update webportal testcases.json file

Change-Id: Ie3d796a2611a890e8872437a7be389d758e38737
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoUpdate webportal code to 2018.09 69/62169/2
xudan [Thu, 13 Sep 2018 03:26:26 +0000 (23:26 -0400)]
Update webportal code to 2018.09

The official name of the next release is going to be 2018.09.

JIRA: DOVETAIL-740

Change-Id: I7da48d27c66d4b25b277339ada3fafa85159b172
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoMerge "Gen-test-cases tool: Print total number of test cases"
Dan Xu [Wed, 5 Sep 2018 06:48:40 +0000 (06:48 +0000)]
Merge "Gen-test-cases tool: Print total number of test cases"

6 years agoMerge "Update test case list for OS interop tests"
Dan Xu [Tue, 4 Sep 2018 02:15:10 +0000 (02:15 +0000)]
Merge "Update test case list for OS interop tests"

6 years agoGen-test-cases tool: Print total number of test cases 89/61789/1
Georg Kunz [Mon, 3 Sep 2018 21:59:54 +0000 (23:59 +0200)]
Gen-test-cases tool: Print total number of test cases

The tool for generating the testcases.json now prints the total number
of test cases per area. This is not needed by the webportal which does
the math itself but rather for updating the total numbers in the
documentation.

Change-Id: I02b8b4eba0d1046495002d32aa476b9abb45c0de
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoUpdate test case list for OS interop tests 87/61787/1
Georg Kunz [Mon, 3 Sep 2018 21:12:26 +0000 (23:12 +0200)]
Update test case list for OS interop tests

The OpenStack Interop WG has recently deprecated [1] 4 cinder volume
reservation tests. As a result, they are not part of Functest's set of
interop tests anymore. This patch cleans up the test case validation
list for the web portal.

[1] https://review.openstack.org/#/c/583970/

Change-Id: Ia0687661e586d2eff5f23a23b5b4971825d82837
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoRemove identity v2 TCs,not supported by Functest 57/61757/1
Panagiotis Karalis [Mon, 3 Sep 2018 13:50:16 +0000 (16:50 +0300)]
Remove identity v2 TCs,not supported by Functest

As Functest does not support identity v2 anymore,
it does not make sense to try to run tempest identity v2 tests.

The identity version 2 testcases are removed from
dovetail-webportal respectively.

JIRA: DOVETAIL-735

Change-Id: I5a929a6d2c615319fea5c63c9a4d6c6f4f3a3fb3
Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
6 years agoMerge "Updating and restructuring documentation links"
Dan Xu [Fri, 31 Aug 2018 01:21:22 +0000 (01:21 +0000)]
Merge "Updating and restructuring documentation links"

6 years agoDisable Community Results page and restrict access to results 79/61579/1
Stamatis Katsaounis [Thu, 30 Aug 2018 08:30:05 +0000 (11:30 +0300)]
Disable Community Results page and restrict access to results
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>
6 years agoUpdating and restructuring documentation links 71/61471/1
Georg Kunz [Tue, 28 Aug 2018 11:58:03 +0000 (13:58 +0200)]
Updating and restructuring documentation links

Adding documentation links for the 2018.08 release to the web portal and
restructuring the side pane.

JIRA: DOVETAIL-712

Change-Id: Iad1780b2955ee8bf748a38036a7db8bf4a30237e
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoAllow only owner of tests and administrator to delete tests 65/61465/1
Stamatis Katsaounis [Tue, 28 Aug 2018 11:52:28 +0000 (14:52 +0300)]
Allow only owner of tests and administrator to delete tests

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>
6 years agoMerge "Homogenize file size error from nginx with python errors"
Dan Xu [Tue, 28 Aug 2018 06:19:52 +0000 (06:19 +0000)]
Merge "Homogenize file size error from nginx with python errors"

6 years agoHomogenize file size error from nginx with python errors 15/61415/1
Stamatis Katsaounis [Mon, 27 Aug 2018 09:15:49 +0000 (12:15 +0300)]
Homogenize file size error from nginx with python errors

JIRA: DOVETAIL-732

This patch homogenize error received from nginx when a file is bigger
than the limit set with python errors. It tells nginx to convert
error 413 to 200 and respond with a json, like python does when
validating the file. As a result, the error is shown in the pop up
as it should be.

Change-Id: I3218516073f848321af02465c5d608ef54d5b715
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
6 years agoRespect Upload file size limit on local docker deployment 13/61413/1
Stamatis Katsaounis [Mon, 27 Aug 2018 07:57:30 +0000 (10:57 +0300)]
Respect Upload file size limit on local docker deployment

JIRA: DOVETAIL-731

This patch fix the upload file size to be respected on local
docker deployments.

Change-Id: I484af5717de4107dd467e98591f7f5c569d163bf
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
6 years agoMerge "Resolve internal errors 500"
Dan Xu [Mon, 27 Aug 2018 01:52:59 +0000 (01:52 +0000)]
Merge "Resolve internal errors 500"

6 years agoUpdate test case list for web portal 89/61389/1
Georg Kunz [Sat, 25 Aug 2018 22:49:44 +0000 (00:49 +0200)]
Update test case list for web portal

Update the test case list for the 2018.08 release.

Change-Id: I91f83de73f666039c5965fbc526599b2d58dae3c
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoResolve internal errors 500 37/61337/1
Stamatis Katsaounis [Fri, 24 Aug 2018 13:57:38 +0000 (16:57 +0300)]
Resolve internal errors 500

* 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>
6 years agoImprove Dockerfiles to be more efficient. 89/61289/1
Stamatis Katsaounis [Thu, 23 Aug 2018 12:48:11 +0000 (15:48 +0300)]
Improve Dockerfiles to be more efficient.

Change-Id: I1739e75d94b0e3f7b4c411ded2fb911e4195da12
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
6 years agoEnlarge the file size allowed to be uploaded 69/60769/1
xudan [Thu, 9 Aug 2018 11:21:46 +0000 (07:21 -0400)]
Enlarge the file size allowed to be uploaded

It will failed to upload the results file.
Error code "413 (Request Entity Too Large)"

Enlarge it to be 20M.

Change-Id: Ia1f1d8aa4c104acdffdfd1ff60325631209a2618
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoUpdate the testcase.json file for web 63/60463/1
xudan [Wed, 1 Aug 2018 06:46:45 +0000 (02:46 -0400)]
Update the testcase.json file for web

Change-Id: I35207636fdbda8dab82567f9f9b834e9acf5ca41
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoMerge "Enable web portal to open log files for each test case of OVP 2018.0x release"
Georg Kunz [Mon, 30 Jul 2018 09:10:24 +0000 (09:10 +0000)]
Merge "Enable web portal to open log files for each test case of OVP 2018.0x release"

6 years agoShowing OVP version on "my results" page 23/60223/2
Georg Kunz [Thu, 26 Jul 2018 21:32:54 +0000 (23:32 +0200)]
Showing OVP version on "my results" page

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>
6 years agoEnable web portal to open log files for each test case of OVP 2018.0x release 67/60267/2
xudan [Fri, 27 Jul 2018 09:19:56 +0000 (05:19 -0400)]
Enable web portal to open log files for each test case of OVP 2018.0x release

JIRA: DOVETAIL-705

Change-Id: Ie51a9f447c4d9f54f1a73e4a15c8594a39d57f3f
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoMerge "Update web portal for 2018.08 results"
Georg Kunz [Wed, 25 Jul 2018 09:35:30 +0000 (09:35 +0000)]
Merge "Update web portal for 2018.08 results"

6 years agoScript for creating testcases.json for the web portal 59/60159/1
Georg Kunz [Tue, 24 Jul 2018 15:02:44 +0000 (17:02 +0200)]
Script for creating testcases.json for the web portal

The web portal requires a list of all testcase which are part of an OVP
release to determine if a test run was successful. This script creates
the list of testcases automatically from the test case specs in
Dovetail.

JIRA: DOVETAIL-594

Change-Id: I051013afa0622a4c20685ab4a7df916f850b3289
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoFix the version of packages in requirements.txt 85/59985/1
xudan [Thu, 19 Jul 2018 09:52:04 +0000 (05:52 -0400)]
Fix the version of packages in requirements.txt

The 'My Results' page got an error because the version of motor.

Set the version to be the same as docker image opnfv/dovetail:api.ovp.1.1.2

JIRA: DOVETAIL-698

Change-Id: I58d690081f3a28ca74f31a2dc4fbd69adb0c0bc4
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoUpdate web portal for 2018.08 results 23/59923/2
Georg Kunz [Wed, 18 Jul 2018 09:16:21 +0000 (11:16 +0200)]
Update web portal for 2018.08 results

Extending the web portal to handle OVP 2018.08 results. This includes
the following changes:

* the 2018.08 result file format has changed according to
  https://gerrit.opnfv.org/gerrit/#/c/58903/

* a new testcases.json which has been automatically created.

JIRA: DOVETAIL-668

Change-Id: I0403779b164f5de92f02857f7ae54f290d2f16ac
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years agoEdit the gitignore file 43/59843/1
xudan [Mon, 16 Jul 2018 07:53:47 +0000 (03:53 -0400)]
Edit the gitignore file

Delete some key in file .gitignore which cause missing some source files.

Change-Id: Icddac3c1d956d75853a3062b549cb2d725ba2fa8
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoUpdate the dockerfile for 2 docker images 05/59605/2
xudan [Mon, 9 Jul 2018 03:45:44 +0000 (23:45 -0400)]
Update the dockerfile for 2 docker images

1. Update the Dockerfile for 2 docker images
2. Update the docker-compose.yml with the new docker repo

JIRA: DOVETAIL-671

Change-Id: Idd0d676568a3aa2a63a1429288f984618281e13a
Signed-off-by: xudan <xudan16@huawei.com>
6 years agoMove all web portal code to the new repo dovetail-webportal 79/59579/1
xudan [Fri, 6 Jul 2018 09:16:40 +0000 (05:16 -0400)]
Move all web portal code to the new repo dovetail-webportal

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>
6 years agoInitial Commit of dovetail-webportal 69/59569/1
Trevor Bramwell [Thu, 5 Jul 2018 17:08:38 +0000 (10:08 -0700)]
Initial Commit of dovetail-webportal

Change-Id: I779651499dd991e87f73ac857b555746f73d9d28
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>