summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-08-25Merge "bug fix: installation of node, bower and grunt for reporting docker"Morgan Richomme3-7/+13
2017-08-25update scenario nameSerenaFeng3-1/+37
url PUT /api/v1/scenarios/<scenario_name> if new_name already exist, return Forbidden if new_name == name, return Forbidden Change-Id: If3b82b3df4a763d60dad110caca2659c5f39ab50 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25update installer under scenarioSerenaFeng3-9/+132
1. post, add one or more new installers 2. update, replace existed installers as a totality 3. delete, delete one or more installers by name 4. in post&update, if schema is not consistent with ScenarioInstaller model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if installer already exist, return Conflict with already exist message 6. in update, if a installer appears more than once, also return Conflict with already exist message Change-Id: I830dba3bcf5f1a9d1c93513b4aae59009f69dc8f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25simplify unit tests implementation of update scenarioSerenaFeng1-88/+79
1. delete useless input arguments 2. update on and assert with self.req_d directly delete intermediate variable 'scenario' Change-Id: I3eda1df4893c890bb23ccf05b45ce2de5fa9dd93 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25update versions under scenarioSerenaFeng4-34/+190
1. post, add one or more new versions 2. update, replace existed version as a totality 3. delete, delete one or more versions by name 4. in post&update, if schema is not consistent with ScenarioVersion model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if project already exist, return Conflict with already exist message 6. in update, if a version appears more than once, also return Conflict with already exist message 7. add update with conflict unittest for projects Change-Id: I0d2c8a5567f3abce7b0313a64e18303af02cc002 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25bugfix: fail to generate APIs document patchSerenaFeng1-2/+2
Change-Id: Iac5bb851514f0f688fcb72deb5f07488bc071225 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25Merge "bugfix: fail to generate APIs document"Serena Feng3-3/+10
2017-08-24utils/fetch_os_creds.sh: Fuel: Robust creds fetchAlexandru Avadanii1-1/+1
In case ctl01 node is down, the current mechanism will return invalid data (the string "Minion") instead of a valid controller IP. Since "keystonercv3" is present on all controller nodes at </root>, adjust the credentials fetch to use the first online controller node. Change-Id: I4ba15bb40d465b112c5e9fc827e3e2a69e671b26 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-08-24bugfix: fail to generate APIs documentSerenaFeng3-3/+10
Change-Id: I13c91fb34e190cd62400eccec6b755419aad89d1 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-24Merge "bugfix: malfunction of scenario equal check"Serena Feng3-13/+26
2017-08-24Merge "Add pod description file support"Jun Li1-1/+3
2017-08-24bug fix: installation of node, bower and grunt for reporting dockerMorgan Richomme3-7/+13
- change node installation process - clean setup (no need of pbr) Change-Id: I9015486e3892e7c949bad5140cc4180ec9f07aa7 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-23Add pod description file supportYang (Gabriel) Yu1-1/+3
JIRA: BOTTLENECK-178 Need to add pod descrition file for Bottlenecks to be installer-agnostic Change-Id: I100022ff1fcdaabe800492649c138dfe9fce55c2 Signed-off-by: Yang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
2017-08-23bugfix: malfunction of scenario equal checkSerenaFeng3-13/+26
1. bugfix equal check with[] will return list[false, true], and always True in next step check 2. in assert_res() leverage '==' will never assert even if they are not equal Change-Id: I683e3489d45b98b508f8ab8b6ef268ca9a1ebd5f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-22Allow huawei-virtual5/8/9 publish logs to artifact repoLinda Wang1-0/+1
Change-Id: I494b0a1ebe8eab7e4ed5642e0a9237d6a5f125b1 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-08-22Merge "Landing page adoption"Morgan Richomme4-370/+244
2017-08-22Merge "bugfix: OperationFailure: the limit must be positive"Serena Feng1-15/+16
2017-08-22Merge "change scenario owner"Serena Feng4-4/+51
2017-08-22Merge "update projects in scenario"Serena Feng6-5/+247
2017-08-22Merge "in swagger operation parameter supports array type"Serena Feng1-5/+12
2017-08-22Merge "update customs in scenario"Serena Feng5-30/+222
2017-08-21bugfix: OperationFailure: the limit must be positiveSerenaFeng1-15/+16
in cursor.aggregate(), set limit=0 is not allowed, in this patch, if no records to be listed, return empty list directly, no more aggregate() JIRA: RELENG-293 Change-Id: I7317892875da9c0f785ba010b55715032dee31ce Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-21change scenario ownerSerenaFeng4-4/+51
1 bugfix owner must be explicit in ScenarioVersion model 2 change owner of scenario 3. usage: PUT /api/v1/scenarios/<scenario_name>/owner? \ installer=<installer_name>& \ version=<version_name> body: new owner Change-Id: I261468cd8445030b61e37e0f804b699d6205bdb0 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-21update projects in scenarioSerenaFeng7-10/+259
1. post, add one or more new projects 2. update, replace existed projects wholly 3. delete, delete one or more projects by name 4. in post&update, if schema is not consistent with ScenarioProject model, BadRequest will be raised(only extra keys will be detected currently) 5. in post, if project already exist, return Conflict with already exist message Change-Id: Iead585f787a4acc61abce6c9d38a036739b498d6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-21Landing page adoptionchenjiankun4-370/+244
Since testapi have done some changes on scenarios api, so landing page should do some adoption. Change-Id: Ib5d1df03e2c50c7d6c038200d97f2057b90e48af Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-08-18in swagger operation parameter supports array typeSerenaFeng1-5/+12
it will be used in scenario update process later Change-Id: Ic44023169f1c0da0946e5e60339ce58076fc8807 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-18update customs in scenarioSerenaFeng5-30/+222
1) post to add one or multiple test cases 2) update to substitute all the test cases 3) delete with body to delete one or multiple test cases 4) to facilitate the process and response body usually useless, if update success all updates(scores/trust_indicators/customs), return 200 with no response body Change-Id: I5148f172989fa8e0e70ffed92ee383c0520dbb41 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-18Merge "bugfix: testapi is killed because of oom_kill"Serena Feng2-17/+19
2017-08-18Merge "impl update trust_indicator in scenario"Serena Feng3-22/+98
2017-08-17impl update trust_indicator in scenarioSerenaFeng3-22/+98
Change-Id: I1afe38412926778bc84d178dbbfc3fe0cde15f69 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-17Merge "update scenario scores"Serena Feng4-6/+190
2017-08-17Merge "delete obsolete scenario update code"Serena Feng3-410/+10
2017-08-16bugfix: testapi is killed because of oom_killSerenaFeng2-17/+19
if page is not provided, return page 1 to avoid large memory consume, further more to kill testapi: Out of memory: Kill process 30842 (opnfv-testapi) score 519 or sacrifice child Killed process 30842 (opnfv-testapi) total-vm:4739716kB, anon-rss:3974612kB, file-rss:0kB JIRA: RELENG-291 Change-Id: Id0e144c030aee390cc41cff8a48e3c997de4ad84 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-16Merge "Bug fix: generate fuel reporting page when no aarch64 available"Morgan Richomme1-1/+1
2017-08-15update scenario scoresSerenaFeng4-6/+190
update score url: POST /api/v1/scenarios/<scenario_name>/scores? \ installer=<installer_name>& \ version=<version_name>& \ project=<project_name> add new score record interface add unit test add swagger specification Change-Id: Ib7bb31f303a9a9402325476bfdadb58aa0df560e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-14delete obsolete scenario update codeSerenaFeng3-410/+10
1) update scenario will be subsitituted with new methods, in this patch delete the obsolete code first to make clean room 2) test_queryCombination() will fail randomly, in this patch disable it first, reopen when problem solved Change-Id: I1939876465934ea09894255712057a78f120be71 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-11Bug fix: generate fuel reporting page when no aarch64 availableMorgan Richomme1-1/+1
In fuel we may deal with x86 or aarch64 architecture We generate dedicated reporting page - fuel@x86 - fuel@aarch64 However when there is no results for one of the architecture the test on the number of architecture lead to a bug Change-Id: I9906bd6078c8493587dc667eb23399a1e8311e77 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-11Add daisy to reportingMorgan Richomme2-0/+2
Change-Id: I5fd940b8c1be1c327cfcd481c27049f94ae2f175 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-11Merge "Initiate packetization of Testing reporting"Morgan Richomme96-201/+524
2017-08-10Merge "add Pods page in webportal"Serena Feng9-504/+212
2017-08-09Initiate packetization of Testing reportingMorgan Richomme96-201/+524
Testing reporting provides - static reporting pages [1] (jinja2) - landing pages including test case catalogue [2] (angular) It consumes the Test API to build web pages providing status for the testing projects (so far functest, yardstick, storperf and qtip). Dockerization has been initiated [3]. The goal is to replace the static page hosted on testresults.opnfv.org by a docker regenerated and redeployed when reporting code is changed But the docker and more generally the testing reporting directory must be refactored to - manage dependencies properly - leverage tox (py27, docs, pylint, pep8) This patch - setups tox (py27, pep8, pylint, docs) - integrate the requirement management - fix pep8 errors - introduce 1 dummy unit test This patch does not - fix pylint errors - create any doc [1]: http://testresults.opnfv.org/reporting2/display/index.html [2]: http://testresults.opnfv.org/reporting2/reporting/index.html [3]: https://gerrit.opnfv.org/gerrit/#/c/36735/ Change-Id: I4613de7ca7036d6c6bbb8f58ade492b1d673599b Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
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>