summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-09-01Merge "Apex, Yardstick: Fixes fetching creds"Tim Rozet1-0/+7
2017-09-01Merge "bug fix: reporting Tempest"Morgan Richomme1-42/+50
2017-09-01Merge "Added the validation for name field in create pod function"Serena Feng2-16/+21
2017-08-31bug fix: reporting TempestMorgan Richomme1-42/+50
not updated since Colorado and data model changed - minor fixes to match data model - pep8/pylint correction Change-Id: I3a0a9ea689d25b3cfff35cb1ec39329981627bc6 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-31leverage LFID as AuthenticationSerenaFeng14-204/+104
delete openid authentication add LFID authentication Change-Id: Iead144b5130bce51448024e65092fdea3bb2f07a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-30Added the validation for name field in create pod functionthuva42-16/+21
Change-Id: I18a072c7b2677794a64693135904cf97eb7b3349 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-08-29Merge "[fuel] Handle os cacert for baremetal deployments"Trevor Bramwell1-0/+4
2017-08-29Apex, Yardstick: Fixes fetching credsTim Rozet1-0/+7
There is a bug where by default the INSTALLER_IP is set to 192.168.X.X and in yardstick the IP is never found for Apex before trying to fetch, so fetching fails to an invalid IP address. This patch makes fetch os creds more robust to check if the INSTALLER_IP is valid and if not, then attempt to find the correct IP for Apex. Change-Id: Ie18d6e70f77ccff3592fb37c6d0b6e87b6435cf8 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-29Add watchdog into testresults server to restart docker containers.Sakala Venkata Krishna Rohit1-0/+178
Unexpected crashing of docker containers were occuring. So, a cron script is to be run in regular intervals which will check for status of the deployments and restart docker if necessary. Docker restart is seen as a solution to solve majority of crashes. Suggest if there is a better approach. Change-Id: I40d56180350844b4a0f766e1b10a9fabfa02d3be Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-08-29Merge "bug fix for qtip reporting"Morgan Richomme2-6/+6
2017-08-29Merge "leverage setup.py directly to install TestAPI"Serena Feng4-32/+12
2017-08-28[fuel] Handle os cacert for baremetal deploymentsMichael Polenchuk1-0/+4
Change-Id: I02503772dc5ed59562c2e0aba96280e2cae1da50 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-08-28bug fix for qtip reportingMorgan Richomme2-6/+6
- fix right path (version duplicated in path) - fix template for nav links in qtip reporting page Change-Id: I7e14bea3feb5e6fad694e2837b3048b9cd8d5825 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-28Merge "update scenario name"Serena Feng3-1/+37
2017-08-28Merge "update installer under scenario"Serena Feng3-9/+132
2017-08-28Merge "simplify unit tests implementation of update scenario"Serena Feng1-88/+79
2017-08-28Merge "update versions under scenario"Serena Feng4-34/+190
2017-08-28Merge "Split HA and NOHA scenarios into 2 tables in reporting"Morgan Richomme1-2/+27
2017-08-25Split HA and NOHA scenarios into 2 tables in reportingMorgan Richomme1-2/+27
the goal is to vizualize more quickly the HA and NOHA scenario Note that if no scenario is available, the table title is displayed Change-Id: Ibdade30aadf40fe4f7b9bfe547d23c186cb3e1df Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-08-25Pod name changes in ARMBANDDelia Popescu1-1/+1
arm-pod3 pod name is changed to arm-pod5 arm-virtual1 pod name is changed to arm-virtual2 Change-Id: I6746fcdd52bbed5b6a61147d0abc5db64876dc97 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2017-08-25leverage setup.py directly to install TestAPISerenaFeng4-32/+12
1. delete additional script install.sh 2. using 'python setup.py install' directly to install TestAPI, as traditional python project do Change-Id: Ifcdee7b2bae2553f523a722bff794c40d20f81cc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
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