SerenaFeng [Thu, 13 Apr 2017 08:19:17 +0000 (16:19 +0800)]
leverage executor to test_result.py in TestAPI
Change-Id: Ie4388a4be0cb174129ac168530559114046680ab
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Mon, 10 Apr 2017 03:03:29 +0000 (11:03 +0800)]
impl executor and leverage to test_pod.py in TestAPI
implement executor.py
leverage executor to test_pod.py
Change-Id: Ief70a28a935c86430e26f90f35112a7bab9fa81b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Mon, 10 Apr 2017 02:27:37 +0000 (10:27 +0800)]
import from absolute path in TestAPI unit
Change-Id: Ic42db22d825229713b38c75c141af7742ca65dd3
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 6 Apr 2017 08:59:19 +0000 (16:59 +0800)]
change not_found to forbidden when db not exist
Change-Id: I1aa61c5d1b057b5a53cf6369b26605867a4d092e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Wed, 5 Apr 2017 08:23:03 +0000 (16:23 +0800)]
unify error message in TestAPI
Change-Id: I994feb7bf340c9e48bebe9fdf3dc3a76bc254652
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Mon, 3 Apr 2017 06:51:05 +0000 (08:51 +0200)]
Change Danube image for reporting
to be sync with communication
Change-Id: I7747416ab73f85d979d405afd9b87d57faac2bf0
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
SerenaFeng [Thu, 30 Mar 2017 07:33:19 +0000 (15:33 +0800)]
unify raise exception process
Change-Id: I109ef9550a57e218b6f5c9196812b33133d34134
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 30 Mar 2017 06:01:30 +0000 (14:01 +0800)]
replace self-defined http codes with standard definitions
Change-Id: I3045dc690e0bc1186f5c548cb533462dd03130d9
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Wed, 29 Mar 2017 16:36:56 +0000 (16:36 +0000)]
Merge "add rename scenario exceptions"
Morgan Richomme [Wed, 29 Mar 2017 14:30:42 +0000 (14:30 +0000)]
Merge "Add docker-compose files and requirements"
SerenaFeng [Wed, 29 Mar 2017 09:02:43 +0000 (17:02 +0800)]
add rename scenario exceptions
JIRA: RELENG-163
Change-Id: I680a181a3c1728034e5782de4bc65cc07f64540c
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Serena Feng [Wed, 29 Mar 2017 09:08:50 +0000 (09:08 +0000)]
Merge "keep methods' name/docstring after decorator"
Morgan Richomme [Tue, 28 Mar 2017 14:53:49 +0000 (14:53 +0000)]
Merge "Create Catalogue page"
SerenaFeng [Tue, 28 Mar 2017 06:30:49 +0000 (14:30 +0800)]
keep methods' name/docstring after decorator
applying functools.wraps() to keep the name and docstring
of the original function which is decorated
Change-Id: Id612039921566dd48f8d8797abe30f23aaf99301
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Kumar Rishabh [Mon, 27 Mar 2017 19:44:31 +0000 (01:14 +0530)]
Add docker-compose files and requirements
This adds docker-compose file to define a multi-container
vnf_catalogue service alongwith helper service to migrate the schema.
Requires docker-compose installation
To run :: docker-compose up
The webapp by default would be accessible at ip_address:3000
Change-Id: I32daf7f76fb1d82116545187395cd96535c94541
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Morgan Richomme [Mon, 27 Mar 2017 09:14:42 +0000 (11:14 +0200)]
Add and insert new project icons
Change-Id: I4334bca1ab02a5d26b84b934cb718b3753ce0a13
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
chenjiankun [Tue, 21 Mar 2017 14:48:54 +0000 (14:48 +0000)]
Create Catalogue page
JIRA: RELENG-193
1.create a page to list all project.
2.This page can get test case list of certain project.
3.This page can show information of certain test case.
Change-Id: I79e0d3aafa99c054865a0d2948b99918802f32a7
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jose Lausuch [Thu, 23 Mar 2017 09:12:08 +0000 (09:12 +0000)]
Merge "start TestAPI in venv with no config-file"
Jose Lausuch [Thu, 23 Mar 2017 09:11:30 +0000 (09:11 +0000)]
Merge "restore setup.cfg in case submitted by mistake"
Jose Lausuch [Thu, 23 Mar 2017 09:11:01 +0000 (09:11 +0000)]
Merge "make unittest execution more user-friendly"
SerenaFeng [Thu, 23 Mar 2017 08:17:05 +0000 (16:17 +0800)]
make unittest execution more user-friendly
allow users use their existed venv
manage all test-related libs in test-requirements.txt
Change-Id: I39a63833e4a1f4f088afa045a83bf12cd01da167
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 23 Mar 2017 07:58:39 +0000 (15:58 +0800)]
restore setup.cfg in case submitted by mistake
in venv mode, setup.cfg will be modified to fit
venv condition, restore to the original after
installation
Change-Id: Ib38b2ab9e015201c812305414a207c05bdf7c830
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 23 Mar 2017 07:35:38 +0000 (15:35 +0800)]
start TestAPI in venv with no config-file
in virtual env mode, config.ini is configured in
.venv/etc/opnfv_testapi, in this case when we start
it the configuration file needs to be specified, by
changing the _default_config, the -config-file is no
longer needed when starting TestAPI in venv mode.
Change-Id: I0217cfefe578bbc3325bb7577ed268dc21cde4ea
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 23 Mar 2017 07:14:47 +0000 (15:14 +0800)]
fix: always return 200 even if exception happens
when post/update/delete is executed, the return value
always are 200, even if exceptions such as 404/409 happen
Change-Id: I612ad15cc6567f435caa4c889bb0c7b6a73f9c52
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Mon, 20 Mar 2017 07:53:38 +0000 (07:53 +0000)]
Merge "Add new testcases in reporting page"
Morgan Richomme [Fri, 17 Mar 2017 08:13:31 +0000 (08:13 +0000)]
Merge "Adds cronjob for filling vnf table row entries"
Morgan Richomme [Fri, 17 Mar 2017 08:13:10 +0000 (08:13 +0000)]
Merge "Add vnf, tag create & Associate Plugins"
Jun Li [Fri, 17 Mar 2017 01:18:11 +0000 (01:18 +0000)]
Merge "utils: fix yamllint issues"
Morgan Richomme [Thu, 16 Mar 2017 16:10:34 +0000 (16:10 +0000)]
Merge "Add support for enum & expand vnf_catalogue schema"
Morgan Richomme [Thu, 16 Mar 2017 10:58:50 +0000 (11:58 +0100)]
Add new testcases in reporting page
- FDS
- Refstack
- opera_ims
- vyos-vrouter
Change-Id: I42a323a1f466b0ba11e61bb287b8b283e4759c09
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Kumar Rishabh [Tue, 14 Mar 2017 19:32:11 +0000 (01:02 +0530)]
Add vnf, tag create & Associate Plugins
Adds support for accessing database, plugin to create tags and
vnfs and make association between them. Also adds autocomplete feature
to vnf-tag association.
Change-Id: Id55f998df68ae5e6e6fd298c6393b3500777468a
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Kumar Rishabh [Tue, 14 Mar 2017 19:50:39 +0000 (01:20 +0530)]
Adds cronjob for filling vnf table row entries
It uses github api calls to fill no_of_developers, no_of_stars and
versions entry. It is a bit hacky as it sets some parameters and parses
the header link line to get the number.
TODO lines_of_code entry as it is not provided directly by github api.
Change-Id: I6cba54ad48fbb6aa5f4823100a426abbb82fc447
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Morgan Richomme [Wed, 15 Mar 2017 07:53:43 +0000 (07:53 +0000)]
Merge "Update reporting page for Danube"
Kumar Rishabh [Tue, 14 Mar 2017 19:40:41 +0000 (01:10 +0530)]
Add support for enum & expand vnf_catalogue schema
Adds support for enum and expands the vnf_catalogue schema.
Change-Id: Ifa2be1a01ad8e12f5f34d6472976f2a862189d48
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Jessica Wagantall [Tue, 14 Mar 2017 18:58:05 +0000 (11:58 -0700)]
utils: fix yamllint issues
Linting utils/test yaml files
Change-Id: Id239cb2e2b2c4658dedfc187b7784b0302701700
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Morgan Richomme [Mon, 13 Mar 2017 14:29:58 +0000 (15:29 +0100)]
Update reporting page for Danube
- add danube in config to generate results
- create new web pages for Euphrates (master)
Change-Id: I11b3f37a0f6040a3d0c18820a08a9d6fb7ebe036
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Tue, 7 Mar 2017 15:57:38 +0000 (15:57 +0000)]
Merge "bug fix: last 4 run reporting for storperf"
Morgan Richomme [Mon, 6 Mar 2017 13:44:47 +0000 (14:44 +0100)]
bug fix: last 4 run reporting for storperf
- bug fix:
copy/paste of yardstick code but list of results
is not sorted by default, taking the last 4 array
items lead to random results on the 4 last run
sort results before taking the last 4 results
to establish last 4 run criteria
- enhancement: add link to last CI run in the
reporting page
- fix trend line bug
Change-Id: Ice16832a81cb65503a63b16321a2be92a427d279
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
chenjiankun [Mon, 20 Feb 2017 09:35:22 +0000 (09:35 +0000)]
Create Test Reporting landing page
JIRA: RELENG-165
In this patch, I upload the backend code
usage:
docker run -itd -p 8000:8000 -e SERVER_URL=server_ip:8000 opnfv/reporting:<tag>
note: must point SERVER_URL, it is the api server.
visit landing page:
http://server_ip:8000/reporting/index.html
Change-Id: I10121574e0c4b2733a8084c986d7a2746e7ce2a4
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
SerenaFeng [Wed, 1 Mar 2017 09:29:31 +0000 (17:29 +0800)]
Problem with rally_sanity results
after refactor, details in rally_sanity became 'unicode',
which contains built-in 'format' method, which is not processed correctly
error message:
File
"/usr/local/lib/python2.7/dist-packages/opnfv_testapi/resources/models.py",
line 36, in _format
for h in dicts[k]]
KeyError: u"u'details'"
JIRA: FUNCTEST-723
Change-Id: If35e55f542fbbae8bd1a534938b7279b7a634880
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Wed, 1 Mar 2017 07:29:22 +0000 (15:29 +0800)]
bugfix unittest test_queryProject occasionally failed in TestAPI
error message:
"E AssertionError: Mismatched values: u'installers', expected:[], actual: []
Change-Id: Ieae5fdfd2a044909784cbb4766a5d25f4bbafcea
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Tue, 28 Feb 2017 14:38:16 +0000 (15:38 +0100)]
Move from snaps_healthcheck to connection_check
to retireve scenario
lxd based scenarios are not running snaps_healthcheck
Change-Id: I34a86b5b8d0e1dffda40e6173196eb9409c448a0
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Tue, 28 Feb 2017 10:47:30 +0000 (11:47 +0100)]
Move case base from tempest_smoke_serial to snaps_healthcheck
It will allow to show additional scenarios in the reporting page
the scenarios that fail on healthcheck or smoke tests
before running tempest_smoke_serial
Change-Id: I0d9ba84296bfc867ab80caa7873bb5bcb8469fc2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
jose.lausuch [Mon, 27 Feb 2017 14:37:04 +0000 (15:37 +0100)]
[Functest] Add Tempest Defcore test to the dashboard
Change-Id: Id2292198d1e34a2de1d2b9ccdda83f565f771df1
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Morgan Richomme [Mon, 27 Feb 2017 10:29:24 +0000 (10:29 +0000)]
Merge "make unittest cover server.py in TestAPI"
Morgan Richomme [Mon, 27 Feb 2017 10:28:57 +0000 (10:28 +0000)]
Merge "Use new-style classes which inherit from object in TestAPI"
Morgan Richomme [Mon, 27 Feb 2017 09:08:59 +0000 (09:08 +0000)]
Merge "Add storperf reportign status page Create associated static storperf page Prepare vsperf, qtip, bottlenecks Put Yardstick scenario class into utils directory"
SerenaFeng [Mon, 27 Feb 2017 06:44:22 +0000 (14:44 +0800)]
Use new-style classes which inherit from object in TestAPI
JIRA: FUNCTEST-707
Change-Id: I90a3d6ebfdf798eefccb8e5a0deebb661329d903
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Mon, 27 Feb 2017 06:33:52 +0000 (14:33 +0800)]
make unittest cover server.py in TestAPI
Change-Id: Id379e6786e1f61fb1032f80636da107156e68fb5
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 23 Feb 2017 07:14:12 +0000 (15:14 +0800)]
leverage tox to facilitate the development
Before submitting a patch, we need to execute flake8, unittest,
open coverage report, now with the help of tox any pytest,
we can process them all with only one command.
pytest is choosen here is because of its useful assert showcase,
and powerful properties and healthy ecosystem(plugins of mock etc)
Change-Id: I7ee89da370da08cc2bc70f7d3b1e2741d7d2e1e8
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Thu, 23 Feb 2017 08:59:09 +0000 (16:59 +0800)]
add unittest of config.py
Change-Id: I96639c47d27ef449d02528efad23e2499daa3def
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Fri, 24 Feb 2017 07:08:41 +0000 (15:08 +0800)]
fix internal port of TestAPI
There are too many parameters when starting TestAPI container,
it will confuse the user. I learned that docker containers like
Jenkins and mongo the internal port is fixed, the user only need
to change the exposed port, so the same strategy is adopted here
Change-Id: I59424f5a1f36945d906975a741b631019fcbd46d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Fri, 24 Feb 2017 07:59:11 +0000 (08:59 +0100)]
Add storperf reportign status page
Create associated static storperf page
Prepare vsperf, qtip, bottlenecks
Put Yardstick scenario class into utils directory
Change-Id: I874d1733fe3f37dc5dd557559478e7e0b25371d7
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Fri, 24 Feb 2017 08:43:50 +0000 (08:43 +0000)]
Merge "Added Search_Results Page"
jose.lausuch [Wed, 22 Feb 2017 19:10:27 +0000 (20:10 +0100)]
Add Netready and Barometer tests to the reporting dashboard
Change-Id: Idc09d3461ee5af09625aba3cf2219b64318145c8
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
rohitsakala [Mon, 20 Feb 2017 07:55:05 +0000 (13:25 +0530)]
Add unit tests to token based authentication
Projects has been choosen as an helper to test token success,invalid and
unauthorized
JIRA: FUNCTEST-739
Change-Id: Iecc68821f5cc85630c17e54144723cc6f5e21ded
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
rohitsakala [Thu, 16 Feb 2017 07:52:05 +0000 (13:22 +0530)]
Add token based authentication for post/update/delete
As the mongodb database is not so secure today, this has been added.
The token is stored in the mongoDB database. For now, authenticate variable is set
false so that there would be no problem in accessing the databse by jenkins
jobs.
JIRA: FUNCTEST-730
Change-Id: I12b3907d650fc63efbdb031ebf3dd09519750109
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
SerenaFeng [Mon, 20 Feb 2017 06:32:29 +0000 (14:32 +0800)]
fix violation of import rule in TestAPI
TestAPI violate import rule of OpenStack Style a lot, like
Do not import objects, only modules
Do not import more than one module per line
Alphabetically order your imports by the full module path
This patch is mean to fix them.
Change-Id: Ia05b944a74b3f443c9101a9840f613f9a6f5ae49
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Kumar Rishabh [Wed, 15 Feb 2017 13:26:24 +0000 (18:56 +0530)]
Added Search_Results Page
Also added animations and actions pertaining
to index and search_results page.
Change-Id: If3966991f165626ca2b13a4ac62af6a777a22903
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Jose Lausuch [Wed, 15 Feb 2017 08:50:35 +0000 (08:50 +0000)]
Merge "implement delete and related unittest"
SerenaFeng [Wed, 15 Feb 2017 02:58:36 +0000 (10:58 +0800)]
implement delete and related unittest
JIRA: RELENG-163
Change-Id: I7fe45f3e92c3dc5f5b32582561249150a2cdb8cf
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Tue, 14 Feb 2017 12:58:21 +0000 (13:58 +0100)]
Bug Fix: tranlate build tag into jenkins url
Include HEALTHCHECK Tier in the reporting
Change-Id: I4a5a8aeb7564ca35c9199c7925ac344b43270d87
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
jose.lausuch [Tue, 14 Feb 2017 13:37:05 +0000 (14:37 +0100)]
Fix flake8 violations in releng
Change-Id: I45769ff9c9db2de9fbba69117a92de414dd7f651
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
rohitsakala [Fri, 10 Feb 2017 20:22:51 +0000 (01:52 +0530)]
Change automation to original testresults server
Changed port from 8711 to 8082 and auto to test in url. There are 3
successful builds.
https://build.opnfv.org/ci/job/testapi-automate-master/
Change-Id: I099b026eb22c7d95d8bf7345837e7c2234ef571d
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Morgan Richomme [Fri, 10 Feb 2017 18:23:59 +0000 (18:23 +0000)]
Merge "update scenario and related unittest"
Kumar Rishabh [Fri, 10 Feb 2017 05:01:59 +0000 (10:31 +0530)]
Added VNF_Catalogue Server
Change-Id: I45cedac46f06e6e1f080dd3bc38d6f79eec37fa6
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
SerenaFeng [Wed, 8 Feb 2017 02:15:11 +0000 (10:15 +0800)]
update scenario and related unittest
JIRA: RELENG-163
Change-Id: I137898dc84de5f8cb6cab5de9b4ac5de5e4bb978
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Wed, 8 Feb 2017 09:59:08 +0000 (09:59 +0000)]
Merge "Update on Functest reporting processing"
rohitsakala [Mon, 6 Feb 2017 15:55:02 +0000 (21:25 +0530)]
Change testresults url to auto testresults url
The url is being changed to auto because the auto testresults website is
updated and the api-docs should be in sync with the testresults website.
Note - The auto testresults is created temporarily.
Change-Id: If2428511c46183bd57b1a466fbdd04786528b103
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Morgan Richomme [Tue, 31 Jan 2017 17:24:30 +0000 (18:24 +0100)]
Update on Functest reporting processing
- new param to exclude or not results from virtual PODs
- new param to exclude or not noha results
- fix path
- add rally_sanity in black list until we fixed the format issue
Change-Id: Ie952f7d6968a322edbcf2effffbc1a75beddc52f
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Kumar Rishabh [Thu, 2 Feb 2017 21:15:13 +0000 (02:45 +0530)]
Added helper scripts
Helper scripts to migrate schema for the mysql database.
Change-Id: Id598c398318967a117a4dbaa3dc21eab22b24d68
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Kumar Rishabh [Fri, 27 Jan 2017 03:39:09 +0000 (09:09 +0530)]
Added VNF_Catalogue Landing Page
Change-Id: Idc5184c3e98bff5297afe18c5e8e25e91490b767
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Jose Lausuch [Wed, 25 Jan 2017 11:17:32 +0000 (11:17 +0000)]
Merge "Add nose and coverage requirements in unittest script"
rohitsakala [Mon, 23 Jan 2017 20:07:54 +0000 (01:37 +0530)]
Add nose and coverage requirements in unittest script
bugfix to :-
https://build.opnfv.org/ci/job/testapi-verify-master/22/console
Change-Id: I0eaa730aed68ce11b9095c2810c223a0519ffcde
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Jose Lausuch [Tue, 24 Jan 2017 09:42:38 +0000 (09:42 +0000)]
Merge "Remove start and finish builders from jenkins job"
Morgan Richomme [Mon, 23 Jan 2017 17:40:45 +0000 (17:40 +0000)]
Merge "Add code coverage report in jenkins job"
rohitsakala [Sat, 21 Jan 2017 16:00:33 +0000 (21:30 +0530)]
Add code coverage report in jenkins job
Modified existing bash script to enable code coverage report in jenkins
job. Removed test-requirements.txt.
JIRA: FUNCTEST-703
Change-Id: I7ea6b5c87ce7d098dcb0c74ed195db0f6c3b9692
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
rohitsakala [Sat, 21 Jan 2017 10:33:55 +0000 (16:03 +0530)]
Shortening swagger spec nicknames
This is being done because titles have become so long in index of
documentation [0] that they don't fit in one line.
[0] http://artifacts.opnfv.org/releng/docs/testapi.html
JIRA: FUNCTEST-704
Change-Id: I046a21d7ceac6dc203ac71d169d4303095bdc69c
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
rohitsakala [Sat, 21 Jan 2017 10:13:35 +0000 (15:43 +0530)]
Remove start and finish builders from jenkins job
Removing those builders as it is unnecessary to start and finish server
instead calling testresults.opnfv.org for specs.
JIRA: FUNCTEST-705
Change-Id: Icfbce0c0eaf9d4ca20920de78450a1ffd580344c
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Jose Lausuch [Fri, 20 Jan 2017 11:32:51 +0000 (11:32 +0000)]
Merge "Add exit in build script to notify jenkins"
Serena Feng [Fri, 20 Jan 2017 09:56:05 +0000 (09:56 +0000)]
Merge "implement get/query scenario(s) and add unittest"
rohitsakala [Wed, 18 Jan 2017 07:02:35 +0000 (12:32 +0530)]
Add exit in build script to notify jenkins
Jenkins job gives success even if swagger codegen fails, so added appropriate
code to make jenkins build fail if swagger codegen fails.
Change-Id: Ia8e61a7b37531ecfa16c7fd60bf8101d6da9fc5f
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
SerenaFeng [Tue, 17 Jan 2017 06:55:02 +0000 (14:55 +0800)]
implement get/query scenario(s) and add unittest
supported queries: scenario name/version/installer/project
JIRA: RELENG-163
Change-Id: I3f6ea6e3c81edff30569918e0789e8c1e693b9fc
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Tue, 17 Jan 2017 14:10:55 +0000 (15:10 +0100)]
Clean case declaration prototype
not used in Colorado
angular framework (landing page) could be used for Danube
Change-Id: I86ded631b4c5b78260bd03b376bf6264dabc2f89
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Tue, 17 Jan 2017 13:22:57 +0000 (13:22 +0000)]
Merge "Fix a bug - add requests in virtualenv"
Morgan Richomme [Tue, 17 Jan 2017 07:57:36 +0000 (07:57 +0000)]
Merge "bugfix: fail to access testapi swagger"
SerenaFeng [Tue, 17 Jan 2017 01:57:29 +0000 (09:57 +0800)]
bugfix: fail to access testapi swagger
bugfix [Errno 2] No such file or directory:
'/usr/local/lib/python2.7/dist-packages/opnfv_testapi/tornado_swagger/static/index.html'
Change-Id: Id1cad9a34a3a0331a2f8a0c27c2fa54ca40c7bd6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
rohitsakala [Fri, 6 Jan 2017 07:31:56 +0000 (13:01 +0530)]
Fix a bug - add requests in virtualenv
Change-Id: Iecd20b69f7a3abf04a34d4ee7e9c94f1a039d8b1
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
SerenaFeng [Mon, 16 Jan 2017 09:59:06 +0000 (17:59 +0800)]
implement create scenario and add unittest
JIRA: RELENG-163
Change-Id: Id715a2e5de1022cfd0a745505771d250935541bd
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Morgan Richomme [Thu, 12 Jan 2017 08:59:03 +0000 (08:59 +0000)]
Merge "Add Daisy for reporting"
Morgan Richomme [Tue, 10 Jan 2017 16:58:25 +0000 (17:58 +0100)]
Add Daisy for reporting
Change-Id: Ie9d6d5e351e5d673252f08ed304d4fef96a1e00b
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
SerenaFeng [Mon, 26 Dec 2016 09:34:05 +0000 (17:34 +0800)]
add scenario models and framework
JIRA: RELENG-163
Change-Id: I36a51022c087621d9539dc40f7d9acee4db95dfb
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Serena Feng [Thu, 5 Jan 2017 05:54:34 +0000 (05:54 +0000)]
Merge "Create Jenkins Job for testapi automation"
Morgan Richomme [Wed, 4 Jan 2017 14:25:42 +0000 (14:25 +0000)]
Merge "Create Test Reporting landing page"
rohitsakala [Thu, 15 Dec 2016 19:08:41 +0000 (00:38 +0530)]
Create Jenkins Job for testapi automation
Right now, only builder for creating testapi doc is included
JIRA: FUNCTEST-664
Change-Id: If0a34154084c1d01ed6b997d2226779da43bcb14
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
rohitsakala [Tue, 3 Jan 2017 17:08:38 +0000 (22:38 +0530)]
Update nicknames in swagger spec
Swagger codegen uses nicknames for defining titles in the api
documentation.
Link - https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md
Change-Id: Ia35718b77dfcac53317384c4445225f28e505919
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
chenjiankun [Sat, 24 Dec 2016 23:08:46 +0000 (23:08 +0000)]
Create Test Reporting landing page
JIRA: RELENG-165
In this patch, I do the follow things:
1.deploy tornado server(currently I haven't write any backend code,
since the backend code depend on the testapi and I need to
communicate with Serena).
2.landing page code(almostly finished. But I haven't the data, so
for now, the data this page shows is a mock json. When the testapi
and my backend code ready, this page will finally finished)
3.deployment: supervisor + nginx + tornado + angular
usage:
docker run -itd -p 8000:8000 opnfv/reporting:<tag>
visit landing page:
http://server_ip:8000/reporting/index.html
test api:
http://server_ip:8000/landing-page/filters
visit old reporting page:
http://server_ip:8000/display/master/yardstick/status-apex.html
Change-Id: I527ab2661ce9e84b2942ebe673afbf5f2bc7878f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
rohitsakala [Thu, 29 Dec 2016 02:41:51 +0000 (08:11 +0530)]
Fix installation of testapi in virtualenv
Ref :- https://openstack.nimeyo.com/87286/openstack-packaging-all-definition-data-files-config-setup
Change-Id: I2519d3930bfeb4d22f92623dcc7ac88e2980b132
Signed-off-by: rohitsakala <rohitsakala@gmail.com>
SerenaFeng [Mon, 26 Dec 2016 09:36:08 +0000 (17:36 +0800)]
correct swagger model of TestAPI
Change-Id: I101283cb118416823a4d1c77b3de6d7882135f1e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
SerenaFeng [Fri, 23 Dec 2016 07:31:14 +0000 (15:31 +0800)]
bugfix: access results failed of Test API
File "/Users/fengxiaowei/opnfv/releng/utils/test/testapi/venv/lib/python2.7/site-packages/opnfv_testapi/resources/models.py", line 47, in format_http
return self._format([])
File "/Users/fengxiaowei/opnfv/releng/utils/test/testapi/venv/lib/python2.7/site-packages/opnfv_testapi/resources/models.py", line 37, in _format
hs.append(h.format())
AttributeError: 'dict' object has no attribute 'format'
JIRA: FUNCTEST-676
Change-Id: I9d8d8a31e5580be51fb690628a03d452742f12d4
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>