summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
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 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>
2017-06-27bugfix: pagination crash due to memory limitationSerenaFeng3-19/+54
MongoDB sorts the results in memory, and the default mem limitation is 32M, if the sort operation consumes more than that it will return an error: OperationFailure: Executor error during find command: OperationFailed Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit. To solve this problem, here we leverage aggregate() and allowDiskUse=True, it is said will not be limited by memory Change-Id: Id698ad1d02912e8b350a33a926fcccc390814fcc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-26bug fix: consider pagination when retrieveing results for reportingMorgan Richomme2-10/+18
Due to pagination feature introduced in test API, reporting pages only considered the first page of results retrieved by the API the number of pages is now detected to aggregate the results JIRA: RELENG-259 Change-Id: I0ac90b125baf8c16341c8db22f5602fedd4cdf1b Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-06-23Merge "Changing urls of testapi api and resources"Serena Feng1-2/+2
2017-06-22Merge "support pagination in TestAPI"Serena Feng6-17/+68
2017-06-21Merge "bug fix: bad format for start/time in Tempest reporting"Morgan Richomme1-1/+18
2017-06-21bug fix: bad format for start/time in Tempest reportingMorgan Richomme1-1/+18
Change-Id: Ic9792023b9041dbe8081ff9840caa2cf2901b189 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-06-20support pagination in TestAPISerenaFeng6-17/+68
In this patch, pagination is supported, so you can go through results leveraging: http://testresults.opnfv.org/test/api/v1/results?page=2 Change-Id: Ibe31c787643f27dbb06c4899e713b3c8e716e784 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-20make website accessible via testresults.opnfv.org/testSerenaFeng3-12/+12
Currently, testapi website can not be fully accessed through testresults.opnfv.org/test, due to http://testresults.opnfv.org/test is not a root url. In this patch leverage relative path to make it accessible Change-Id: I56983d2221791d8a060039ec829278d31ecb5048 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-15Fuel: adds retrieving OS credentials for MCPAndrii Ostapenko1-30/+40
Adjusts retrieving OS credentials for MCP (master branch in fuel repo) Also removes legacy admin_ip and public_ip retrieving. Change-Id: Ib7781a3701c7281b781872b18150332b94298260 Signed-off-by: Andrii Ostapenko <aostapenko@mirantis.com>
2017-06-07add filter based on begin&end time of start_dateSerenaFeng2-4/+22
filter of 'Start Date' & 'End Date' in Community Results page now works, currently, only 20 records will be shown due to pagination is not supported. From server side, query from date to date is supported now, query as: /api/v1/results?from=2016-11-01%2000:00:00&to=2017-06-01%2023:59:59 Change-Id: I482b117129dbae38fa5a2858a86442c80d87d19e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-06show community resultsSerenaFeng3-198/+29
show latest 20 results in cummunity results page. Because pagination is not supported, pagination related buttons are forbiddened now Change-Id: I3d94fc1b89845b6583dd40fe86d69407adfd2e6c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-06Merge "Change to 'catalog_description' in Catalogue page"Morgan Richomme6-18/+41
2017-06-06Merge "substitute with testapi img"Morgan Richomme4-0/+0
2017-06-05substitute with testapi imgSerenaFeng4-0/+0
delete useless openstack and refstack images add testapi-logo.png. Currently it is a free one with signature finally we will substitute it with an official one. Change-Id: I6c1ccaa21fab311c5858351e58bd7c8d9392a75a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-02Change to 'catalog_description' in Catalogue pagechenjiankun6-18/+41
JIRA: RELENG-231 Change-Id: Id0b770575c0d91a58b3503f8580bd658337b2cd0 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-05-25Updating the license with Creative Commons Attribution 4.0 with SPDX shorthandRay Paik2-4/+4
Change-Id: Iff8ada7637648a320fc7ef4a0fb3e187186964e5 Signed-off-by: Ray Paik <rpaik@linuxfoundation.org>
2017-05-24[Functest] Push results for functest suitejose.lausuch1-0/+1
Since Functest doesn't post the output to the console any more, we need the logs in some jobs to troubleshoot. Those logs are not stored for functest-suite jobs by default. This patch enables also lf-virtual2 and 3 where some apex verify jobs are using this builder. Change-Id: I5707d1540bed8df9b7c4457775d9877311ba0b33 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-05-24Functest: Adds failure checking + fixes fetch os credsTim Rozet1-3/+5
Change-Id: Ib8a3ff3a747be55d8e23513bd028d934fef02eb8 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-24Functest: removes redundant exit 0 from fetch credsTim Rozet1-2/+0
Also allows unset and pipefail explicitly in set-functest-env.sh Change-Id: I06ae718f563fed0596a37cec1b3a78e44ee7ea5d Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-21Changing urls of testapi api and resourcesSakala Venkata Krishna Rohit1-2/+2
Change is done in reference to https://gerrit.opnfv.org/gerrit/#/c/34527/ This change will also fix the jenkins job testapi auto deploy which is failing. Change-Id: I5011718aa2bdf7e2aab0a12d406c4d0eece86972 Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-05-20support cancel operation while signing inSerenaFeng3-2/+11
support the cancel operation in the https://openstackid.org/accounts/user/consent Change-Id: I06a1f130a3115774f2e88fc25dad522a7cf53e36 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-05-20Merge "add signout funcationality"Serena Feng3-0/+15