summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-08-10Merge "add Pods page in webportal"Serena Feng9-504/+212
2017-08-09add Pods page in webportalSerenaFeng9-504/+212
delete OPNFV Powered Guidelines page add Pods page with create/list operations Change-Id: Ib9fd2834bd9d54ee33600458a90e3aac76382589 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-08Merge "Allow ZTE POD2 to Publish Testing Logs"Morgan Richomme1-1/+2
2017-08-08Merge "merge swagger_base_url with ui_url"Serena Feng9-16/+12
2017-08-07Allow ZTE POD2 to Publish Testing LogsTrevor Bramwell1-1/+2
Change-Id: I17e6c6d316a49199f3e4797d87113392cce69568 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2017-07-28support generating pod.yaml for HA test cases on Apexxudan1-6/+9
JIRA: DOVETAIL-472 Now Dovetail can run on Apex pod. So it needs to support generating pod.yaml on this installer to guarantee HA test cases can run successfully. Change-Id: Idc3d457bf9f56ad2ea68d27921498f3060ec375f Signed-off-by: xudan <xudan16@huawei.com>
2017-07-26merge swagger_base_url with ui_urlSerenaFeng9-16/+12
TestAPI used to have only one webpage, which is swagger_ui, now a new one webportal is added, and the base url is the same (http://testresults.opnfv.org/test)for them both. This patch aim to unify the urls. Change-Id: I15295975fb05f7e8c8d413e12b2b5c0784f0799a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-24delete obsolete run_test.shSerenaFeng1-40/+0
after switching to tox, run_test.sh is not used now Change-Id: I66d40d6df47652b956f85f022843b60886ce41a2 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-21query date from oldest to newestSerenaFeng1-11/+20
Change-Id: I3d0345bb85967f48617c485bbee1dfe6fa04a644 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-21separate db methods from handler.pySerenaFeng9-54/+60
db methods are mingled in handler, which is not well structured Change-Id: I639679d3fc05a0b6528158186b8bf89e0cd10596 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-21Merge "decouple the mutual-dependence of config.py and server.py"Jose Lausuch11-68/+75
2017-07-20decouple the mutual-dependence of config.py and server.pySerenaFeng11-68/+75
Currently server.py relies on CONF while starting the service, and config.py's config_fie is set in server.py, which is wrongly bi-depended this patch aims to let Config parse the sys.argv personally, just as oslo.config do, so that decouple the mutual-dependency Change-Id: I46887d122a98d478caebe9eeb7ab038941ce1f6b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-20modify url to relative path to fit with testresults.opnfv.org/testgrakiss1-3/+3
Change-Id: Ia600fe310404a1ba45e9571d611eedcdc669dbc7 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-07-20role based access control and result uploadgrakiss14-21/+225
1. add role for user 2. user can upload test results Change-Id: I1c5370be7818edb0394f05e8b81f975deb98b286 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-07-19Merge "bugfix: pagination raise exception when no records returned"Serena Feng1-13/+14
2017-07-19Merge "bugfix: query doesn't work well with period=1"Serena Feng3-7/+35
2017-07-19Merge "bugfix: mix order of Arno results"Serena Feng2-2/+2
2017-07-19Merge "leverage openstack's requirements rule"Serena Feng2-11/+11
2017-07-19bugfix: pagination raise exception when no records returnedSerenaFeng1-13/+14
if no records returned, it will raise 'Request page > total_pages' error. this patch is submitted to fix this JIRA: RELENG-281 Change-Id: I447247c55c64674d44d21d6f4ac8bb3ef725cfb0 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-19bugfix: query doesn't work well with period=1SerenaFeng3-7/+35
when querying by date, if $lt is not provided, the empty/None/null/'' results will also be returned, the patch aims to fix this issue by adding $lt = datetime.now() if not provided JIRA: RELENG-212 Change-Id: Ida1e7d386a88d4ab640441df161c1fe134593f82 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-19bugfix: mix order of Arno resultsSerenaFeng2-2/+2
because start_date is not always in the same format or timezone, sort by start_date will be misordered some times, in this patch leverage '_id' to do the sort, it is generated by mongodb itself, always upscend. JIRA: FUNCTEST-694 JIRA: RELENG-213 Change-Id: Ie0ed5cd09c3f7abb1803d72abe5ecab440c1569c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-16[Compass] Move cacert docker copy after chown in fetch_os_credswutianwei1-1/+1
sometimes it can't copy os_cacert but copy opnfv_openrc. it cause an issue and didn't execute the command chown. so the opnfv_openrc will belong to root, which will cause errors next time. Change-Id: I2955ba347d399d65c9e5cd566235be06fb7c30af Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-14leverage openstack's requirements ruleSerenaFeng2-11/+11
change requirements.txt and test-requirements.txt to keep consistent with openstack's global-requirements.txt Change-Id: I0e62c88b957136438a23e85e41d775194bdc8757 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-14leverage tox and pytest to execute unit testSerenaFeng2-4/+9
Change-Id: I20856e1b445587f0d8ee23e792793af863743252 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-14Merge "testapi: bugfix of tox"Jose Lausuch9-4/+13
2017-07-14Compass: add cacert file to enable SSL verificationLinda Wang1-2/+5
Now only Openstack https is supported by OSA repo LXC in compass deployment, so certification file is required to enable SSL verification. After [1] is merged, the cacert file os_cacert will be provided in the container compass-tasks. [1]: https://gerrit.opnfv.org/gerrit/#/c/37451/ Change-Id: Id747cef1955733a1c93feb20a26d503a5de1fb93 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-14testapi: bugfix of toxMatthewLi9-4/+13
error log https://gerrit.opnfv.org/gerrit/#/c/37053/ https://build.opnfv.org/ci/job/testapi-verify-master/220/console Change-Id: Id278edad06c2852c662392d75fd3cf4041b03451 Signed-off-by: MatthewLi <lijun_1203@126.com>
2017-07-13Merge "leverage testapi's own gitignore"Serena Feng1-0/+4
2017-07-12leverage testapi's own gitignoreSerenaFeng1-0/+4
some files/dirs should be gitignored in testapi, but they may be needed in releng, this patch aims to manage gitignore by testapi itself Change-Id: I3c57d1199145d7f062d4e48aa8216ae34672f455 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-12move resources unit tests to tests/unit/resourcesSerenaFeng12-13/+13
As webportal is introduced, the project structure is becoming more complex, it is time to make it a a little bit more official Change-Id: Id380d37b07719f053b0bd385a326a2f2944a4b22 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-07Merge "Change owner of the openrc file for compass"Jun Li1-0/+1
2017-07-07Merge "Push Functest API doc to artifact"Jose Lausuch1-0/+48
2017-07-07Change owner of the openrc file for compassLinda Wang1-0/+1
The jenkins user is not permitted to view openrc file with root owner and group.[1] cat: /home/jenkins/opnfv-openrc.sh: Permission denied [1]: https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/1293/console Change-Id: I89d0597c8f0ece00f70fd6622048794b15510636 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-07Merge "Compass: add retrieving OS credentials for Containers"Jun Li1-27/+30
2017-07-06Merge "Reporting docker deployment improvement"Morgan Richomme9-333/+365
2017-07-06Push Functest API doc to artifactSakala Venkata Krishna Rohit1-0/+48
Note that it is not the final goal The final goal is to integrate api doc into Functest developer guide This will be triggered from opnfvdocs and replace the current developer guide: http://docs.opnfv.org/en/stable-danube/submodules/functest/docs/testing/developer/devguide/index.html This patch allows to have an up-to-date api docs on the artifact after functest merge http://artifacts.opnfv.org/functest/docs/ Change-Id: I91256add29ce9eadd66764c2234da1d60981dd31 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com> Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-07-06Compass: add retrieving OS credentials for ContainersLinda Wang1-27/+30
Compass has changed the mechanism of deployment (Containers) in master, so we adjust the way to fetch the OS credentials file. Change-Id: If126ac9b081589c21466b59eae05b107bf6dc425 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-06Reporting docker deployment improvementchenjiankun9-333/+365
In the patch, I make build pages(landing page ...), when docker build, when run a container, we can set the api url(default:testresults.opnfv.org/reporting2) by -e; For example: 1. In testresults.opnfv.org: docker run -itd -p 8888:8000 -p 80:80 opnfv/reporting:tag visit: http://testresults.opnfv.org/reporting2/reporting/index.html 2. Personal use: docker run -itd -p 8888:8000 -p 80:80 -e SERVER_URL=192.168.131.2:8888 opnfv/reporting:tag visit: http://192.168.131.2:8888/reporting/index.html Change-Id: Ib838c12e785151acf9852f25eab254aedc520a1d Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-05bugfix: hardcoded testapi urlsSerenaFeng6-12/+16
testapi webportal's urls are fixed in configure files this patch aims to modify them according to base_url provided when bringing up container Change-Id: I29c461fc3b837e54d4ff5330dcaa520637590ff7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-04Merge "Add jenkins jobs for automatic reporting dashboard deployment"Jose Lausuch3-43/+45
2017-07-04Allow zte-virtual1 publish logs to artifact repojose.lausuch1-1/+2
Change-Id: I0a8935351444909b13ed306baf4f36311c8186c9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-02Add jenkins jobs for automatic reporting dashboard deploymentrohitsakala3-43/+45
Jenkins Jobs have been added for automating the deployment of the reporting dashboard. Also multijob has been added for automating the update of docker in the docker hub and generating docs which is empty for now. Modified unit tests of reporting to make it run from any directory. Modified the testapi jenkins jobs yaml file to generic so that many other modules which may have the same usecases can be integrated easily just like the reporting one that is done now. Change-Id: Id13a55416e17199dae1dd6ce64f7c167d117ba37 Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-06-29this script is called by jenkins useragardner1-2/+2
we need to sudo the mkdir Change-Id: I4db726e92566917ecd384884cf1a3c60354c2065 Signed-off-by: agardner <agardner@linuxfoundation.org>
2017-06-29Merge "bug fix: typo in bottlenecks naming (reporting page)"Aric Gardner2-3/+3
2017-06-28Merge "refactor list operation"Jose Lausuch1-26/+42
2017-06-28Merge "bugfix: Exception when the results is empty"Morgan Richomme1-2/+2
2017-06-28refactor list operationSerenaFeng1-26/+42
all operations mix together make it very difficult to read Change-Id: I7e4a12fd13a7aa0dc0c8fc09b69c7e43a2ab18ac Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-28bugfix: Exception when the results is emptySerenaFeng1-2/+2
list operation crash when limit is not provided, error message: OperationFailure: the limit must be positive JIRA: RELENG-265 Change-Id: Id8db93b594010d054a71d301d9c42eed113c12e1 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-27Merge "bugfix: pagination crash due to memory limitation"Jose Lausuch3-19/+54
2017-06-27bug fix: typo in bottlenecks naming (reporting page)Morgan Richomme2-3/+3
Change-Id: Ifb2047e688117c7c9af33031467f2025d530f187 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>