releng-testresults.git
8 years agobugfix: empty webportal when running in docker 49/49349/2
SerenaFeng [Wed, 20 Dec 2017 09:08:21 +0000 (17:08 +0800)]
bugfix: empty webportal when running in docker

error message:
angular.js:11655 Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=authenticateProvider%20%3C-%20authenticate

Change-Id: I39efeeea17ae55d762d85d8f56cf5f241ff866f8
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "remove deprecated dashboard code"
Serena Feng [Tue, 19 Dec 2017 07:34:20 +0000 (07:34 +0000)]
Merge "remove deprecated dashboard code"

8 years agoMerge "Redesign the projects page & project page"
Serena Feng [Mon, 18 Dec 2017 01:07:26 +0000 (01:07 +0000)]
Merge "Redesign the projects page & project page"

8 years agoRedesign the projects page & project page 01/48501/4
thuva4 [Thu, 7 Dec 2017 04:17:08 +0000 (09:47 +0530)]
Redesign the projects page & project page

redesign the projects page like pods page
included the delete, filter, create, edit,
batch delete in the projects page.
Unify the update modal for projects page and
project page.
Fix authenticate - fault opertaions

Change-Id: If4ea50ada11941c5d9199d898476837020c02241
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoMerge "add querying pods by name(part & case insentitive)"
Serena Feng [Wed, 6 Dec 2017 19:44:24 +0000 (19:44 +0000)]
Merge "add querying pods by name(part & case insentitive)"

8 years agoremove deprecated dashboard code 35/48435/1
SerenaFeng [Wed, 6 Dec 2017 01:07:43 +0000 (09:07 +0800)]
remove deprecated dashboard code

dashboard is not used anymore, substitute by Bitergia dashboard

Change-Id: Iccfd634d0d404d23b09d88454dab38425359a2b8
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoadd querying pods by name(part & case insentitive) 33/48433/2
SerenaFeng [Wed, 6 Dec 2017 01:00:41 +0000 (09:00 +0800)]
add querying pods by name(part & case insentitive)

Change-Id: Ie7f14588864c79d6ed87adec3e6901dfbabbb1a6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoremove useless print snippet 27/48427/1
SerenaFeng [Tue, 5 Dec 2017 23:09:22 +0000 (07:09 +0800)]
remove useless print snippet

Change-Id: I3ea4ea202bf2f5cf17ca585ccffbef3265ef7cc0
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoAdd view option in pods page 51/48351/2
thuva4 [Mon, 4 Dec 2017 23:43:32 +0000 (05:13 +0530)]
Add view option in pods page

Created the view function for the pods page.
It will redirect to pods/:name page where user
can see the more details about the pod.

Change-Id: I0d6c06098fd78ecca523a49e2bb532001adaeaa8
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoredesign the pods interface 71/48071/5
thuva4 [Thu, 30 Nov 2017 09:14:45 +0000 (14:44 +0530)]
redesign the pods interface

redesign the pods interface and add the delate operation
for the podas in backend.
Fix the issue in creating pods: Owner is null

Change-Id: I2f8e907f9ab62362a3003d6457662ab85bf2cb12
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoMerge "clear web pages"
Serena Feng [Fri, 24 Nov 2017 06:29:35 +0000 (06:29 +0000)]
Merge "clear web pages"

8 years agoclear web pages 07/47707/2
SerenaFeng [Thu, 23 Nov 2017 11:04:17 +0000 (19:04 +0800)]
clear web pages

1. delete 'My Results' page, it means to be used in dovetail,
   now dovetail has an independent repo
2. rename 'Community Results' to 'Results'
3. delete vendor/products/result-reports ... code,
   they are useless for now, and probably in the future

Change-Id: I6678fdadf5f11842bb1614d7eaa4cf21256385b6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoAdd filter option in projects page 33/47633/6
thuva4 [Thu, 23 Nov 2017 07:14:38 +0000 (12:44 +0530)]
Add filter option in projects page

Implemented the filter option for the projects by
following params.

name - Check the  project's name.

Edit the Error message view.

Change-Id: Ib2f0e0ccd9726353dbbedbc44d98747ec8e2d4f9
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoshowing the response message in the pods page 95/47395/3
thuva4 [Wed, 22 Nov 2017 05:38:05 +0000 (11:08 +0530)]
showing the response message in the pods page

Edit the response from the server and remove the
traceback part from the error response.
Add create success alert.

Change-Id: I887a9ca1b55050d961c6db1141c15203a978aec1
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoMerge "move self-developed front-end codes to ui/"
Serena Feng [Wed, 22 Nov 2017 01:26:45 +0000 (01:26 +0000)]
Merge "move self-developed front-end codes to ui/"

8 years agomove self-developed front-end codes to ui/ 57/47557/1
SerenaFeng [Tue, 21 Nov 2017 06:54:15 +0000 (14:54 +0800)]
move self-developed front-end codes to ui/

Change-Id: I0b64661e73d940a577f27ded9322086788e4f5f3
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agobugfix: docker build failed after leveraging new repo 49/47549/1
SerenaFeng [Tue, 21 Nov 2017 03:14:01 +0000 (11:14 +0800)]
bugfix: docker build failed after leveraging new repo

Change-Id: Idd2e5d1957bbd476e97be1d96dd8511d120ad5af
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "Update and Delete functionalities for projects"
Serena Feng [Tue, 21 Nov 2017 02:13:12 +0000 (02:13 +0000)]
Merge "Update and Delete functionalities for projects"

8 years agoUpdate and Delete functionalities for projects 27/47327/3
thuva4 [Thu, 16 Nov 2017 09:21:29 +0000 (14:51 +0530)]
Update and Delete functionalities for projects

Implemented the update and delete functions for the
projects and wrote the e2e tests for the both
functions.

Change-Id: I917dd9503f145b0dde61dd9970bd855f9711335e
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agobugfix: docker-deploy.sh missing for automate jjb 95/47295/2
SerenaFeng [Thu, 16 Nov 2017 02:20:20 +0000 (10:20 +0800)]
bugfix: docker-deploy.sh missing for automate jjb

auto deploy fail:
https://build.opnfv.org/ci/job/testapi-automate-docker-deploy-master/156/console

Change-Id: Ifb47087e3faaa45befe29c542eca43f7d001a5cf
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoCreate functionality and e2e tests for project 77/47177/1
thuva4 [Tue, 14 Nov 2017 10:08:56 +0000 (15:38 +0530)]
Create functionality and e2e tests for project

Implemented the create function for the projects.
Wrote the e2e tests for the create function.

Change-Id: Iceac650573ca31b6246350c4d60033b42e0ffb0f
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoMerge "Initial .gitreview and .gitignore"
Serena Feng [Tue, 14 Nov 2017 00:49:15 +0000 (00:49 +0000)]
Merge "Initial .gitreview and .gitignore"

8 years agoInitial .gitreview and .gitignore 65/47065/2
Trevor Bramwell [Fri, 10 Nov 2017 22:23:19 +0000 (14:23 -0800)]
Initial .gitreview and .gitignore

Change-Id: Icacd39c72c8f9b154834e149e30d04cdeab46860
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
8 years agoInitial Commit CI Files 71/47071/1
Trevor Bramwell [Fri, 10 Nov 2017 23:25:33 +0000 (15:25 -0800)]
Initial Commit CI Files

These files come from the releng repository and are used in the
automated deploy of testapi. Moving them into this repository removes
the need to clone multiple repositories when deploying the testapi site
and verifying the repository.

Change-Id: Ibd54c47bd76e3f2d801cfb4eaaeb1623bd1ae7b9
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
8 years agoMerge "add simple e2e tests for PodsCotroller"
Serena Feng [Fri, 3 Nov 2017 01:06:59 +0000 (01:06 +0000)]
Merge "add simple e2e tests for PodsCotroller"

8 years agoadd simple e2e tests for PodsCotroller
thuva4 [Mon, 30 Oct 2017 15:13:36 +0000 (20:43 +0530)]
add simple e2e tests for PodsCotroller

Change-Id: I9baa04ff062f36569c1e143014239931de64cf32
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoremove components out side of 3rd_party
SerenaFeng [Fri, 27 Oct 2017 08:58:49 +0000 (16:58 +0800)]
remove components out side of 3rd_party

components are implemented by TestAPI team, they are not the third
party code, put them under opnfv_testapi/ui directory

Change-Id: Ia0f5e2afe4bcb12bcb74d3a8d78fb28fe1432bec
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "divide resources into handlers and models"
Serena Feng [Mon, 30 Oct 2017 12:28:31 +0000 (12:28 +0000)]
Merge "divide resources into handlers and models"

8 years agodivide resources into handlers and models
SerenaFeng [Fri, 27 Oct 2017 08:28:48 +0000 (16:28 +0800)]
divide resources into handlers and models

divide resources into handlers&models
put ui handlers into handlers directory
put User into user_models.py

Change-Id: I3d9e260097205213c3ea8d4eac08b9019e017f71
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoadd develop guide for testapi
SerenaFeng [Fri, 20 Oct 2017 09:39:54 +0000 (17:39 +0800)]
add develop guide for testapi

Change-Id: Iaa9c15092aafda2024f08c467eea2f3ab9cddd96
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agobugfix: E722 do not use bare except
SerenaFeng [Fri, 27 Oct 2017 07:45:20 +0000 (15:45 +0800)]
bugfix: E722 do not use bare except

new added pep8 check: https://build.opnfv.org/ci/job/testapi-verify-master/435/console

Change-Id: I29c1ffbb534babf55ec2fe675001cc85b9e2e922
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "allow authentication to be disabled"
Serena Feng [Mon, 23 Oct 2017 01:27:12 +0000 (01:27 +0000)]
Merge "allow authentication to be disabled"

8 years agobug fix: score calculation based on build_tag
Morgan Richomme [Fri, 20 Oct 2017 15:17:37 +0000 (17:17 +0200)]
bug fix: score calculation based on build_tag

we were used to count the number of PASS of the last 4 runs
it works 80% of the cases

4 runs
4 OK => 3 points
3 OK => 3 points
2 OK => 2 points
1 OK => 1 point
0 => 0

it is different from the normal score calculation
4 OK => 3 points
3 OK => 2 points
2 OK => 2 points
1 OK => 1 point
0 => 0

Change-Id: Ib8df2c294e0036246176c181b7a7ac290ebea07e
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoallow authentication to be disabled
SerenaFeng [Fri, 20 Oct 2017 08:13:29 +0000 (16:13 +0800)]
allow authentication to be disabled

in local deployment situation, authentication can be disabled by
setting authenticate=False of ui section in config.ini

JIRA: RELENG-324

Change-Id: I9157d1723851feb12435033dbdd59035e3eb5777
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agocriteria field must be 'PASS/FAIL'
SerenaFeng [Fri, 20 Oct 2017 07:21:59 +0000 (15:21 +0800)]
criteria field must be 'PASS/FAIL'

criteria must be fix with 'PASS/FAIL', case insensitive
or else, BADREQUEST exception will be raises

JIRA: RELENG-327

Change-Id: Ic648b9d38937fc63924e42cfdf5345cdaa32e1ed
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoExtend the Functest reporting black list
Morgan Richomme [Thu, 19 Oct 2017 12:12:12 +0000 (14:12 +0200)]
Extend the Functest reporting black list

remove
* tempest_full_parallel
* rally_full

Change-Id: Ibb944e7d32dc3cf0fc0b87a269c9e2f0327410e4
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoAdd new function to get indivial test score for aarch64
Morgan Richomme [Tue, 17 Oct 2017 09:54:44 +0000 (11:54 +0200)]
Add new function to get indivial test score for aarch64

as architecture is not considered as a constraints (unlike scenario or
installer) we need to work on the build tag to retrieve the data

but it is not possible to use regex directly in the API

so retrieveing the accurate results require extra processing
 * based on build_tag, filter the results properly per scenario
 * build a table build_tag time for a given scenario
 * keep only the last 4 results
 * evaluation criteria field

It would simplified if architecture could be declared as a constraint
then querying the resuls will not change and not require intermediate
steps

JIRA: FUNCTEST-880

Change-Id: Id4fe4f56babf0964d41e299905c804e0d837c3d7
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agodelete legacy update code
SerenaFeng [Mon, 16 Oct 2017 07:02:12 +0000 (15:02 +0800)]
delete legacy update code

update directory was employed to update TestAPI before auto deployment
is adopted, now it is useless and can be deleted.

Change-Id: I4e5ae84e80879cd9f711dc1d02224ae4f5902e49
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agofix yamllint verify fail
SerenaFeng [Mon, 16 Oct 2017 07:44:00 +0000 (15:44 +0800)]
fix yamllint verify fail

fail record: https://build.opnfv.org/ci/job/opnfv-yamllint-verify-master/1050/console

Change-Id: Ic709b9a3d1d3642a3deebd930714a2ba2de22da6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "Added license metadata to specify Apache-2.0"
Serena Feng [Mon, 16 Oct 2017 01:45:28 +0000 (01:45 +0000)]
Merge "Added license metadata to specify Apache-2.0"

8 years agoMerge "Update table headers in the reporting page"
Serena Feng [Mon, 16 Oct 2017 01:44:29 +0000 (01:44 +0000)]
Merge "Update table headers in the reporting page"

8 years agoAdded license metadata to specify Apache-2.0
rpaik [Sat, 14 Oct 2017 04:25:43 +0000 (21:25 -0700)]
Added license metadata to specify Apache-2.0

Change-Id: Id2e6b148f896eee5122339e501c8604e74ef774c
Signed-off-by: rpaik <rpaik@linuxfoundation.org>
8 years agoChange criteria 'SUCCESS' to 'PASS' in yardstick reporting
chenjiankun [Thu, 12 Oct 2017 08:21:29 +0000 (08:21 +0000)]
Change criteria 'SUCCESS' to 'PASS' in yardstick reporting

To keep consistent with other testing project,
yardstick should change criteria value from 'SUCCESS' to 'PASS'

Change-Id: I8d8779927a74749e7c43df4e55e1888c49cbbbaf
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agobugfix: trend graph not show in fuel x86 and aarch64
chenjiankun [Thu, 12 Oct 2017 02:48:00 +0000 (02:48 +0000)]
bugfix: trend graph not show in fuel x86 and aarch64

The trend tool will read installer field in scenario_history.txt
But now this field is fuel not fuel@x86 or fuel@aarch64.
So I change fuel -> fuel@x86 & fuel@aarch64.

Change-Id: I8e97e57febd559f65be559b16bceee5cf8268926
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agoMerge "Add fuel@x86 and fuel@arm support"
Morgan Richomme [Wed, 11 Oct 2017 09:25:42 +0000 (09:25 +0000)]
Merge "Add fuel@x86 and fuel@arm support"

8 years agoAdd fuel@x86 and fuel@arm support
chenjiankun [Tue, 10 Oct 2017 08:08:37 +0000 (08:08 +0000)]
Add fuel@x86 and fuel@arm support

Since scenario data do not have a field named architecture,
So I choose pod_name for now.
For example:
    pod_name: arm-pod5
I assume that it is based arm architecture

Change-Id: I92159a5e08b1ed80701494483fd9922dbd459193
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agoput htmlize directory under jjb/releng
SerenaFeng [Wed, 11 Oct 2017 07:32:07 +0000 (15:32 +0800)]
put htmlize directory under jjb/releng

centralize jjb related scripts

Change-Id: I4abeb06f17b48b8e7ac15803db0f3ce7eb0c1b93
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoChange score calculation for functest reporting
Morgan Richomme [Fri, 6 Oct 2017 18:39:36 +0000 (20:39 +0200)]
Change score calculation for functest reporting

the goal is not to penalize scenario with few iteration due to
CI pipeline constraints
until now the top score was calculated on the base on 4 iterations, it means
whatever the number of iterations, we always consider the possible top score
based on at least 4 iterations

each case can get
- 3 points (last 4 iterations PASS)
- 2 points (more than 1 PASS over the last 10 days but 1 FAIL of the last 4)
- 1 point (at least 1 PASS over the last 10 days)
- no point  (never work)

so if we consider a scenario with 10 cases, the top score is
30 = 10*3 (max points)

the coefficient to calculate the top score is not the number of iterations

- 1 iteration => possible  top score 10
- 2 iterations  => top score 20
- 3 iterations => top score 20
- 4 or more iterations => top score 30

previously top score was systematically 30

https://wiki.opnfv.org/plugins/servlet/mobile#content/view/6828617

Change-Id: I01102bc00766b7f5b58e73befa7d5328fcc895cc
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoUpdate table headers in the reporting page
Yujun Zhang [Tue, 3 Oct 2017 14:10:57 +0000 (22:10 +0800)]
Update table headers in the reporting page

Change-Id: I19916f1e4dd04297cc7d73e93a12767d335c0d99
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoFix status reporting page
Yujun Zhang [Sat, 30 Sep 2017 06:42:53 +0000 (14:42 +0800)]
Fix status reporting page

- use data in last 10 days instead of 1 day
- hide installers without any data
- remove redundant qtip reporting

Change-Id: If73a439572b6a1cf09c7d34f643fb14be82196ca
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Fix Bottlenecks status page cann't be shown."
Morgan Richomme [Fri, 29 Sep 2017 07:14:59 +0000 (07:14 +0000)]
Merge "Fix Bottlenecks status page cann't be shown."

8 years agoChange Euphrates image
Morgan Richomme [Fri, 29 Sep 2017 07:11:54 +0000 (09:11 +0200)]
Change Euphrates image

minor pylint fix in functest/reporting-status

Change-Id: Ibfd4f0da1475c34c40a3d9e00530f8f15eb3c7dc
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoFix Bottlenecks status page cann't be shown.
liyin [Fri, 29 Sep 2017 06:41:46 +0000 (14:41 +0800)]
Fix Bottlenecks status page cann't be shown.

Change-Id: Ia1ad4c0654ad2dea7fdb61b81725af9aaafc4750
Signed-off-by: liyin <liyin11@huawei.com>
8 years agoreporting adoption for Euphrates
chenjiankun [Tue, 26 Sep 2017 06:27:26 +0000 (06:27 +0000)]
reporting adoption for Euphrates

Danube -> Euphrates in euphrates.html
add euphrates dir
fix CONFIG_REPORTING_YAML value
fix import error in scenario.py

Change-Id: Ic0457bf8d1c67bd21ef6a31564792eb98cfca9ad
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agoMerge "cloudify_ims reporting fixes"
Morgan Richomme [Mon, 25 Sep 2017 06:34:10 +0000 (06:34 +0000)]
Merge "cloudify_ims reporting fixes"

8 years agocloudify_ims reporting fixes
Morgan Richomme [Fri, 22 Sep 2017 14:25:21 +0000 (16:25 +0200)]
cloudify_ims reporting fixes

+ minor fixes

 * unknown => real test case names
 * pylint corrections

Change-Id: I75446e4006d41fe1bb25106420910025afa01489
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoMerge "Bugfix: Change http_pass to proxy_pass"
Morgan Richomme [Fri, 22 Sep 2017 06:30:13 +0000 (06:30 +0000)]
Merge "Bugfix: Change http_pass to proxy_pass"

8 years agoMerge "bugfix: autoupdate failed due to mingle with watchdog"
Morgan Richomme [Thu, 21 Sep 2017 12:38:29 +0000 (12:38 +0000)]
Merge "bugfix: autoupdate failed due to mingle with watchdog"

8 years agorefactor one click deployment in testapi
SerenaFeng [Thu, 21 Sep 2017 05:41:59 +0000 (13:41 +0800)]
refactor one click deployment in testapi

substitue docker-compose.template with string description,
so that user can wget deploy.py and execute directly.

Change-Id: I9703a1c8dfbdc46470561d54c6663e3728540162
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agobugfix: autoupdate failed due to mingle with watchdog
SerenaFeng [Thu, 21 Sep 2017 03:16:44 +0000 (11:16 +0800)]
bugfix: autoupdate failed due to mingle with watchdog

1. In the original design, if the auto-job starts soon after
the watchdog starts, the auto update might be mingled with
connectivity check, which may lead to update failure. so instead,
the connectivity is checked first, if failed and module is not in deploying,
restart module.
2. only automate-docker-deploy job will impact the container status during
auto-job, so substitue auto-job status check with automate-docker-deploy's
3. the watchdog is not only for testapi, but also for reporting, and
all docker container server deployed in testresults.opnfv.org, so move it under
utils/test/opts, which is leveraged to store tool-sets employed for testing tools.

Change-Id: I766f3a534a3d510ce7509d4e742150150ccd8f54
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoadd one click deployment of testapi and reporting
SerenaFeng [Wed, 20 Sep 2017 08:33:55 +0000 (16:33 +0800)]
add one click deployment of testapi and reporting

leverage docker compose to deploy testresults set
testapi/reporting/mongo
usage:
python one_click_deploy.sh -tp 8082 -rp 8084 -tl http://host_ip:8082

Change-Id: I8dfb868637749b82ec86e58220376b03ad50664d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoBugfix: Change http_pass to proxy_pass
chenjiankun [Wed, 20 Sep 2017 08:41:08 +0000 (08:41 +0000)]
Bugfix: Change http_pass to proxy_pass

http_pass is wrong for nginx, we need to change it to proxy_pass

Change-Id: Ib679b36a4a139c02647564719e1cfc49a9f376a2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agoMerge "Add Euphrates pages for reporting"
Morgan Richomme [Wed, 20 Sep 2017 07:34:53 +0000 (07:34 +0000)]
Merge "Add Euphrates pages for reporting"

8 years agoAdd Euphrates pages for reporting
Morgan Richomme [Mon, 18 Sep 2017 14:02:18 +0000 (16:02 +0200)]
Add Euphrates pages for reporting

Change-Id: Iee4c54801d839be949495360141d4ae9353e5ecc
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoBug Fix: Using library for urlencode
utkarshrai98 [Sun, 17 Sep 2017 04:36:50 +0000 (10:06 +0530)]
Bug Fix: Using library for urlencode

Changes to method call _set_query

Change-Id: I95837df57cc98c21ff5d95d9753269490c025dd3
Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com>
8 years agoMerge "testing for raise in config.py"
Serena Feng [Sat, 16 Sep 2017 03:40:53 +0000 (03:40 +0000)]
Merge "testing for raise in config.py"

8 years agoleverage LFID authentication to pod creation
SerenaFeng [Mon, 11 Sep 2017 04:37:22 +0000 (12:37 +0800)]
leverage LFID authentication to pod creation

only valid linux foundation user is allowed to create the new pod
add owner field in pods to track the pod creator

Change-Id: Icada07152069f7c826bfa6122cb86db8c4e3bf68
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoleverage token_check only when posting results
SerenaFeng [Thu, 7 Sep 2017 08:18:56 +0000 (16:18 +0800)]
leverage token_check only when posting results

In this patch begin to consider the LFID authentication,
token check only effects results, the permission of other
resources(pods/projects...) will be checked by LFID.

Change-Id: I20f6f221e3bd75ebf06dcd91012898b913f1d0be
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agotesting for raise in config.py
utkarshrai98 [Thu, 7 Sep 2017 07:28:41 +0000 (12:58 +0530)]
testing for raise in config.py

Change-Id: I3b4f21307af55c8f32332502ddcb9315074b7202
Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com>
Testing for the raise in test_config.py

Change-Id: Iea7ae53b5eac51d3e3eaf9f23d6e8cd79919f103
Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com>
8 years agoMerge "add case-insensitive for find pods query"
Serena Feng [Tue, 12 Sep 2017 01:31:17 +0000 (01:31 +0000)]
Merge "add case-insensitive for find pods query"

8 years agoMerge "update Readme.rst to be consistent with current implementation"
Serena Feng [Tue, 12 Sep 2017 01:15:04 +0000 (01:15 +0000)]
Merge "update Readme.rst to be consistent with current implementation"

8 years agoMerge "Fix the error in the podscontroller."
Aric Gardner [Mon, 11 Sep 2017 20:12:31 +0000 (20:12 +0000)]
Merge "Fix the error in the podscontroller."

8 years agoHandle error in front-end
thuva4 [Mon, 11 Sep 2017 14:02:19 +0000 (19:32 +0530)]
Handle error in front-end

Handle the error and show appropriate message,
without showing the entire error to the users

Change-Id: Ib5213190efc1e87d56a7329a4572b525a5e16a12
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoFix the error in the podscontroller.
thuva4 [Fri, 8 Sep 2017 06:34:22 +0000 (12:04 +0530)]
Fix the error in the podscontroller.

remove the unnecessary "$rootscope" in the controller's parameters.

Change-Id: Ia048af9e146e871003307af27faca24a5ee225ca
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoadd case-insensitive for find pods query
thuva4 [Thu, 7 Sep 2017 13:33:57 +0000 (19:03 +0530)]
add case-insensitive for find pods query

Now user can't create the pods with the same name.
Just like "Demo" , "deMo" and "demo"

Add unit test for case-insensitive query

Change-Id: Ifddc7b70a38d8504e5fe105fa5cc1a77bf0e39a9
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
8 years agoChange nginx configuration
chenjiankun [Mon, 11 Sep 2017 06:24:45 +0000 (06:24 +0000)]
Change nginx configuration

Since landing page have changed from reporting2 to testing,
the nginx configuration need some adoption.

If the pre url change again, we need to config the base_url when start
our docker container. For example:
    docker run -itd -p 8084:8000 -e SERVER_URL testresults.opnfv.org/xxx/api opnfv/reporting:latest

Change-Id: If3c9f9af76fcfc8047b5b9559fcc8bd45740d4d2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
8 years agoMerge "Updating reporting url and fixed a bug"
Serena Feng [Mon, 11 Sep 2017 01:21:27 +0000 (01:21 +0000)]
Merge "Updating reporting url and fixed a bug"

8 years agoMerge "Remove VNF catalogue from releng It has been transfered to sample vnf repo...
Aric Gardner [Fri, 8 Sep 2017 19:02:46 +0000 (19:02 +0000)]
Merge "Remove VNF catalogue from releng It has been transfered to sample vnf repo [1]"

8 years agoRemove VNF catalogue from releng
Morgan Richomme [Fri, 8 Sep 2017 06:43:19 +0000 (08:43 +0200)]
Remove VNF catalogue from releng
It has been transfered to sample vnf repo [1]

[1]: https://git.opnfv.org/samplevnf/tree/VNF_Catalogue

Change-Id: I418151bd24517efeb66fc0ae76cb9e091bd130f6
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoUpdating reporting url and fixed a bug
Sakala Venkata Krishna Rohit [Fri, 11 Aug 2017 04:42:12 +0000 (10:12 +0530)]
Updating reporting url and fixed a bug

Changing the url of the reporting to the original one.

Change-Id: I2973a4b7d28cbdd725a4764dffbf777c3fc2e937
Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
8 years agoAdd bottlenecks to reporting
Morgan Richomme [Thu, 7 Sep 2017 07:21:42 +0000 (09:21 +0200)]
Add bottlenecks to reporting

very basic approach based on 1 case posca_factor_ping
Give a feedback on the CI activity of bottlenecks

Change-Id: Iaa84abac6b00ba48a771250433a9f9a068de453f
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoupdate Readme.rst to be consistent with current implementation
SerenaFeng [Wed, 6 Sep 2017 02:44:16 +0000 (10:44 +0800)]
update Readme.rst to be consistent with current implementation

Change-Id: Ie8abeca5901cce635f54f0c01496a7181287d0cd
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agohide cas ticket from web portal
SerenaFeng [Wed, 6 Sep 2017 06:21:23 +0000 (14:21 +0800)]
hide cas ticket from web portal

In the previous implementation, when login the url will shown as:
http://localhost:8000/?ticket=ST-5WzYs6SD2A#/
this patch aims to hide the ticket mechanism.

1) add /api/v1/auth/signin_return to process login verify
2) refactor code, leverage SignBaseHanlder() to manage casclient

Change-Id: I62e23eb69ee52304c30753e861b4f0a4e0d45541
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "Refactored docker watchdog code"
Morgan Richomme [Tue, 5 Sep 2017 12:19:25 +0000 (12:19 +0000)]
Merge "Refactored docker watchdog code"

8 years agoMerge "hide create_pod function from anonymous user"
Serena Feng [Tue, 5 Sep 2017 12:08:46 +0000 (12:08 +0000)]
Merge "hide create_pod function from anonymous user"

8 years agobugfix: TestAPI start failed due to config.ini not found
SerenaFeng [Tue, 5 Sep 2017 09:14:16 +0000 (17:14 +0800)]
bugfix: TestAPI start failed due to config.ini not found

not specifying abspath, so that the config.ini is installed under
/usr/local/etc/opnfv_testapi/config.ini

Change-Id: If9f4d1ab2d6a67a4aa5b5d481f46e9eddb4a2cbb
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "bugfix: leverage data_files to stop hacking setup.py"
Serena Feng [Tue, 5 Sep 2017 08:24:46 +0000 (08:24 +0000)]
Merge "bugfix: leverage data_files to stop hacking setup.py"

8 years agobugfix: container start failed due to config_file set to Nonetype
SerenaFeng [Tue, 5 Sep 2017 03:45:45 +0000 (11:45 +0800)]
bugfix: container start failed due to config_file set to Nonetype

Traceback (most recent call last):
  File "/usr/local/bin/opnfv-testapi", line 6, in <module>
    from opnfv_testapi.cmd.server import main
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/cmd/server.py", line 34, in <module>
    from opnfv_testapi.common.config import CONF
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 67, in <module>
    CONF = Config()
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 21, in __init__
    self._parse()
  File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 29, in _parse
    if not os.path.exists(self.config_file):
  File "/usr/lib/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Change-Id: Ifa26b5b52e7f1c19a773b02ecc1c45b59b5dc09b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "improve: discard venv support for official product"
Serena Feng [Tue, 5 Sep 2017 02:00:33 +0000 (02:00 +0000)]
Merge "improve: discard venv support for official product"

8 years agoAdd 2 files forgotten in previous commit for vsperf integration
Morgan Richomme [Mon, 4 Sep 2017 12:19:45 +0000 (14:19 +0200)]
Add 2 files forgotten in previous commit for vsperf integration

Change-Id: Ibfd36814ac09d16ba4b3d365e04bf3b39a1ef7db
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoMerge "Add vsperf in reporting"
Morgan Richomme [Mon, 4 Sep 2017 12:15:44 +0000 (12:15 +0000)]
Merge "Add vsperf in reporting"

8 years agoRefactored docker watchdog code
Sakala Venkata Krishna Rohit [Mon, 4 Sep 2017 11:29:05 +0000 (16:59 +0530)]
Refactored docker watchdog code

Removed start_containers fix as it was redundant. Checking jenkins
job status for each module separately as deployment of one module
doesn't depend on other module.

Change-Id: I8ce34b9b7458ac56c9b866b5add539ad304095ed
Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
8 years agobugfix: leverage data_files to stop hacking setup.py
SerenaFeng [Mon, 4 Sep 2017 07:57:23 +0000 (15:57 +0800)]
bugfix: leverage data_files to stop hacking setup.py

1) leverage data_files to distribute ui related files, and dispatch
them under /usr/local/share/opnfv_testapi
2) delete hacking coding, no more extra processes
3) utilize MANIFEST.in to include 3rd_party when producing a source distribution

Change-Id: Idb83a02be11f6b24610191e9f85e0db80d92e972
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agohide create_pod function from anonymous user
SerenaFeng [Mon, 4 Sep 2017 10:09:49 +0000 (18:09 +0800)]
hide create_pod function from anonymous user

Querying pods is open to everybody
But only login users are allowed to create the new pod

Change-Id: I1c722580c2c51a8a8b0f84f1ffac451dff20b086
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoimprove: discard venv support for official product
SerenaFeng [Mon, 4 Sep 2017 08:46:30 +0000 (16:46 +0800)]
improve: discard venv support for official product

virtual env is only to facilitate the development, not be used
in official product, thus delete the support, let the developer
manage their own development env.

Change-Id: I33af882ab257e88b1e7a316d1d78197d6279933d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoAdd vsperf in reporting
Morgan Richomme [Mon, 28 Aug 2017 09:34:45 +0000 (11:34 +0200)]
Add vsperf in reporting

fix some pep8 errors in other projects

Change-Id: Iea68b0d495f7fbe892ec866fb70b8354ad9ff3c2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoclarify obsoleted test configuration files
SerenaFeng [Wed, 30 Aug 2017 08:33:31 +0000 (16:33 +0800)]
clarify obsoleted test configuration files

delete noparam.ini/nosection.ini/notboolean.ini/notint.ini/normal.ini
substitute normal.ini with etc/config.ini

Change-Id: I7e2fa331736a2f9bf807814416a3118be5f613e5
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "leverage LFID as Authentication"
Serena Feng [Mon, 4 Sep 2017 01:08:34 +0000 (01:08 +0000)]
Merge "leverage LFID as Authentication"

8 years agoMerge "Add watchdog into testresults server to restart docker containers."
Aric Gardner [Fri, 1 Sep 2017 18:17:22 +0000 (18:17 +0000)]
Merge "Add watchdog into testresults server to restart docker containers."

8 years agoMerge "bug fix: reporting Tempest"
Morgan Richomme [Fri, 1 Sep 2017 07:03:15 +0000 (07:03 +0000)]
Merge "bug fix: reporting Tempest"