summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-08-26Stop calling exec_test.sh in the middle of python scriptsCédric Ollivier4-6/+53
Now run_tests.py calls directly OpenDaylightTesting.functest_run(). It mainly reads env vars as exec_test.sh does. Change-Id: Ibb44a7ca67e9218d34d13b8dd539e772902fe5b8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d6484df9b602f0888450ef1e29ccc0a5f6c94675)
2016-08-26[Fuel] Skip test_server_basic_ops tempest testMichael Polenchuk1-0/+14
Skip TestServerBasicOps which fails when deleting server and floating ip almost at the same time. JIRA: FUEL-173 JIRA: FUEL-176 Change-Id: I24f3397096757028bed9d32d6353aa689e8eaa9a Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com> (cherry picked from commit 44819aec4a70a75abc9fbcff23edd9d904170bf7)
2016-08-25Use by default the default ODL web portCédric Ollivier1-5/+3
Change-Id: I7580f02dd5b2db6cf06690ef0163768ea59079fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 683db3a5d67aeead1090008bce7701ffb208a15c)
2016-08-24Fixing commit f1054f8fFerenc Cserepkei1-1/+1
fix missed the apt-get action Change-Id: Iac94576a2f712133eee92e4b5460f85d59e90e94 Signed-off-by: Ferenc Cserepkei <ferenc.cserepkei@ericsson.com> (cherry picked from commit 2002f166154ca5a9380f9d2da2843477669af8f5)
2016-08-24Included correct links (Colorado) to Doctor/Promise user guidesBertrand Souville2-4/+4
Change-Id: I9f6a3d806407f088bd97826c978417d23b18613a Signed-off-by: Bertrand Souville <souville@docomolab-euro.com> (cherry picked from commit 218e49c9729f3ecfe3661a6efce0a46a6ba4e278)
2016-08-24[SFC] Fixing CINikolas Hermanns1-0/+1
The fix https://gerrit.opnfv.org/gerrit/#/c/19351 will need more time for dicussion. In the meanwhile we can use this one so that CI does not break anymore. Change-Id: Icbd54200bd62e5019c2a556699ceb41afdb229ca Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com> (cherry picked from commit f1054f8f7c787e50df0c0e27ecb10752393071e2)
2016-08-23Avoid duplicating logs in run_tests.pyCédric Ollivier2-2/+3
When run_tests.py sets logger as execute_command arg, logs are duplicated in functest.log and not shown in console (as every DEBUG message). As logger is mainly managed by the python scripts in charge of testing, it can be safely removed here. stderr is also redirected to stdout in execute_command to print possible relevant data. JIRA: FUNCTEST-431 Change-Id: Ie77544b4679e12e0a0ac7f5e5989d86862fe106b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 53fd052b7fce64294c50ca170d42367d711ccc3f)
2016-08-23when create/get/update failed return None rather than FalseSerenaFeng4-28/+28
In openstack_util.py, when create/get/update network or other resources failed, False is returned, which is incompatible with success return value such as id, network_nic. JIRA: FUNCTEST-427 Change-Id: Id2f55d8524e5aff150ba6bfb799085377a63baa4 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 3e95a1cd0721924e89e2cfd2960d4736bc6c5588)
2016-08-23delete useless image_exists in vpingSerenaFeng2-7/+2
In rally, image_exists is used to decide whether the image resource should be cleaned or not. But unlike rally, image_exists in vping is only assigned but not never be actually used. JIRA: FUNCTEST-426 Change-Id: Id2089dd2a9734ba957cc1c80d4dc31bc27907b0a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 73053cd38fed875e3e5d64cabfb7fbfeb2839a80)
2016-08-23Enable security scan for apex scenariosvitikkan1-1/+1
Change-Id: I6c2925237d7ae437f49d60d37ef906ed8029eb03 Signed-off-by: vitikkan <viktor.tikkanen@nokia.com> (cherry picked from commit da6398642446f98240d9d1bf924e959e64a73d63)
2016-08-23refactor push_result_to_db print thingSerenaFeng1-11/+38
when Exceptions happen, the print code is too difficult to understand and maintain, modify to make it clear jira: FUNCTEST-425 Change-Id: Ie12af989e711df3791167955642f2edf1164b146 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 2588e2af6c2b609ab08957268f8163954cd8eae1)
2016-08-23Create tempest resources before generating tempest.confvitikkan1-1/+1
During generating tempest.conf file rally tries to download cirros image from the internet if no suitable images exist in the configuration. This change ensures that cirros image is created before generating tempest.conf file. JIRA: FUNCTEST-195 Change-Id: I9e2df8af40bd02db9b78b8b6b730b4f4168a8b2d Signed-off-by: vitikkan <viktor.tikkanen@nokia.com> (cherry picked from commit 93f4a6576d58522dfbb458f184399767ef8764aa)
2016-08-23doctor test support fuel installerdongwenjuan1-1/+1
Change-Id: I9229d4de823568bfefd4f2c1ab5c5c1a1ded6d2c Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn> (cherry picked from commit e0a17212d21ae7d76c55791ab8bcde1c66df3158)
2016-08-23Add logger to push_results_to_db argsCédric Ollivier1-1/+1
It conforms to the current implementation of functest_utils Change-Id: I50fa05fbf81a7c76cf4a6e3ef906fffe8aec15bf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8541642abd6504d5df021654a7481fc90315da8c)
2016-08-23Point tempest to stable 12.1.0Michael Polenchuk1-1/+1
Checkout tempest to the latest stable tag instead of master development branch. Change-Id: I20c7e83bf6441e84b9441f4cb193681753f81300 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com> (cherry picked from commit 132774cfdca1f8c4cb6f62baed15314f657e0e0b)
2016-08-22Fix typos in OpenDaylightTestingCédric Ollivier1-2/+2
Change-Id: Ia70c1db358b727a910a38b679de0e3c6febdb0cd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 43a98904445a7151b586f996ae5d0e858fa24b98)
2016-08-22Mend create_image() functionMichael Polenchuk1-0/+2
Change-Id: I91681736817f881ca53e5124328bd4399aa54740 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2016-08-22Merge changes from topics 'dont_open_twice', 'add_logs', 'manage_return_codes'Morgan Richomme1-15/+21
* changes: Avoid opening tmp files twice Add logs (info) Improve errors and status codes management
2016-08-22Merge "bugfix: push_result_to_db exception show"Morgan Richomme1-0/+5
2016-08-22Avoid opening tmp files twiceCédric Ollivier1-2/+6
It avoids opening stdout.txt twice and removes it at the end. Change-Id: I7e006b52f49dd32543676259e0a1be2473670487 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-22Merge "Bug fix - Better way to grab file from gerrit"valentin boucher1-3/+5
2016-08-22Add logs (info)Cédric Ollivier1-2/+3
It adds logs (info) when status is ok and fixes an exception printing too. It removes one useless log (debug). Change-Id: Ia59c3985ae749b80d0e0c07f331220bd33cd8007 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-22bugfix: push_result_to_db exception showSerenaFeng1-0/+5
When pod is not exist in DB, exception will be shown as 'Error pushing results into Database '<type 'exceptions.TypeError'>'', very unclear, make it very difficult to fix the problem. Modify it to show as the testapi returned 'HTTPError: HTTP 404: Not Found (Could not find pod [zte-no])' JIRA: FUNCTEST-424 Change-Id: I55fc4639d745b84f6d32a148bd13793d236e2a09 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-08-22Improve errors and status codes managementCédric Ollivier1-11/+12
Run returns the number of errors which is irrelevant to catch as they are published to DB. Useless generated files are desactivated too. Change-Id: I2baf6d5242c5f4095302a47ff90272fb95103457 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-22Catch exception if output.xml failedCédric Ollivier1-15/+19
It protects against a direct call to push_to_db without a previous run even if it can not happen in the current implementation. Change-Id: Ifa00aed60912fa8b96b80d581067548ac6727fb5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-22Merge "Add reporting to DB in OpenDaylightTesting"Morgan Richomme3-150/+62
2016-08-22Merge "Protect again changes of unix permissions"Morgan Richomme1-0/+3
2016-08-22Merge "refactor vping"Morgan Richomme4-544/+322
2016-08-22refactor vpingSerenaFeng4-544/+322
There are lots of common processes in vPing_userdata.py and vPing_ssh.py, abstract and refactor them. JIRA: FUNCTEST-414 Change-Id: I4cd2c635318c063319d2a3c31f9a1e512eeea6c8 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-08-21Protect again changes of unix permissionsCédric Ollivier1-0/+3
It adds chmods in Dockerfile to ensure python and bash scripts can be executed. Change-Id: I9d75e87fcb1eb2e6fa37039fa5a070ef21cf0efb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-21Chmod 755 all py files which can be executedCédric Ollivier4-0/+0
All files where __main__ is checked can now be executed by everyone. It results from [1] like the next commit [2]. [1] find . -name "*.py" |xargs grep __main__ |cut -d\: -f 1 |xargs chmod 755 [2] https://gerrit.opnfv.org/gerrit/#/c/16737/ Change-Id: I75395892e9e6afbf8ac9c995258496be557aad5f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-19Add reporting to DB in OpenDaylightTestingCédric Ollivier3-150/+62
It now relies on Robotframework API instead of parsing output.xml. The type of critical and elapsedime fields are now bool and int respectively. start_date and stop_date has been fixed too. JIRA: FUNCTEST-367 Change-Id: I59f3ad2109345395ccf01a714301a14f9323f088 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-19Add exec rightCédric Ollivier1-0/+0
Change-Id: I9c3fd786574622977870b12d38b92f8bed8a929c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-19Merge "Fix print when push_results_to_db fails"Morgan Richomme1-2/+2
2016-08-19Fix print when push_results_to_db failsCédric Ollivier1-2/+2
Change-Id: I82741a8727fc17bc6648e1b1e92511b3efd93b8a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-19Merge "Modify data sent to testAPI"Morgan Richomme1-19/+12
2016-08-19Bug fix - Better way to grab file from gerritManuel Buil1-3/+5
We changed the way to download a single file from gerrit We point now to the original file as bugs in tacker were fixed Change-Id: I566b2f95ac1ab6032f22180bb42d0fa49482058c Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-08-19Pull down default instance flavorMichael Polenchuk1-1/+1
Set default instance flavor to m1.tiny in order to keep hardware resources requirements at the minimum. Change-Id: If070e25389e1d7978c34dec8621414c8938a262f Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2016-08-19Merge "functest compass usage document"Morgan Richomme1-0/+58
2016-08-19Merge "Remove useless odlreport2db args"Morgan Richomme2-32/+7
2016-08-19Merge "Colorado Release note"Morgan Richomme1-147/+174
2016-08-19Modify data sent to testAPICédric Ollivier1-19/+12
It mainly removes prefixes, '#' and '@' and changes details to tests. It deletes useless comments too. Change-Id: I7807a7429a90e7c7c15f8662008a5a768f96be98 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-08-19Colorado Release noteMorgan Richomme1-147/+174
FUNCTEST-420 Change-Id: I3fab0637fedc04bcb61a76e61f91da5df5c732c1 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-08-19fix Pillow version 3.3.0Ryota MIBU1-0/+1
The latest docker build for functest container has failed while installing Pillow-3.3.1 [1], where the previous build had succeeded [2]. Let's pin the version of Pillow to 3.3.0 . [1] https://build.opnfv.org/ci/view/functest/job/functest-docker-build-push-master/589 [2] https://build.opnfv.org/ci/view/functest/job/functest-docker-build-push-master/588 Change-Id: I18e46340aa8f43ec56aef5e3d208cac59af10a9c Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2016-08-18functest compass usage documentMatthewLi1-0/+58
JIRA: FUNCTEST-333 add some information in configuration file Change-Id: I6ec91d15c859b9739904d602aef3a0927f6561b6 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-08-18Merge "complement Parser related userguide"Morgan Richomme3-4/+12
2016-08-18complement Parser related userguideSerenaFeng3-4/+12
JIRA: FUNCTEST-423 Change-Id: Ib52e04a873a2a924102832fe5461ebab2296464d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-08-18Merge "Config guide workflow simplification"Morgan Richomme2-496/+454
2016-08-18Config guide workflow simplificationJuha Haapavirta2-496/+454
Workflow simplification for config guide. Several good improvement ideas taken into account. Work is not totally complete yet and may need separate handling. Added link to chapter "Apex installer tips" which was accidentally dropped off. Moved commands specific to apex to appropriate section. Took away the Rally as an example of the test case execution behind a proxy. Rally does not nesessarily need internet connectivity. I finally removed the dreaded "Whiteschpace" at EOL in several places. Adding minor tweaks and finetuning. Corrected the phrasing of docker installation. JIRA: FUNCTEST-347 Change-Id: I35c094d1d89538a2991a384bbc70b48b0d18e75d Signed-off-by: Juha Haapavirta <juha.haapavirta@nokia.com>
2016-08-18Remove useless odlreport2db argsCédric Ollivier2-32/+7
It removes useless odlreport2db args as functest_utils parses env vars too and erases this previous values. All mandatory env vars are still checked in exec_test.sh. Change-Id: I3dd299dcad1758b994cf9d53ef65a5b83dc46b97 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>