aboutsummaryrefslogtreecommitdiffstats
path: root/functest
AgeCommit message (Collapse)AuthorFilesLines
2017-07-17Conform the RefStack testcase with the Rally contextCédric Ollivier1-4/+9
If the RefStack testcase relies on the Tempest configuration generated by Rally, it must conforms with the related context [1]. [1] https://raw.githubusercontent.com/openstack/rally/0.9.1/rally/plugins/openstack/verification/tempest/context.py Change-Id: Ia62c0a328c53a1541aeaf8668e1f34ae67898eed Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-17Wait for refstack-client to finishCédric Ollivier1-31/+18
The previous implementation waited for /bin/sh to finish instead of refstack-client. Then tempest still ran in background even if the tescase was considered as finished. Now all tempest logs are only printed in the dedicated file. Change-Id: I94cd7c6fe68f3bc21782d8d9c43feee338c103ae Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-14Merge "Use decorators for mock patching"Jose Lausuch1-281/+272
2017-07-13Fix some issues in cloudify_imsboucherv3-31/+43
- Blocking ssh - Timeout for SCP - Debug in clearwater-ims-base - Flavor with snaps Change-Id: Ib11a4ebf20e698caccbb16920ae7d715f931fc58 Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-07-12Merge "Switch to check_deployment instead of check_os.sh"Morgan Richomme5-177/+23
2017-07-12Switch to check_deployment instead of check_os.shjose.lausuch5-177/+23
Change-Id: Idcc67643f813068c3cd06f4c0dfd3289bb7df138 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-12Merge "Add odl configurations for odl testcase in daisy environment"Cedric Ollivier2-0/+19
2017-07-12Merge "New python script to check openstack deployment"valentin boucher2-0/+339
2017-07-12Add odl configurations for odl testcase in daisy environmentAlex Yang2-0/+19
To support odl testcase in the environment deployed by daisy installer. Change-Id: I70bc668520cf28385fcff8489c773b880e7b4080 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-07-11Use decorators for mock patchingMartin Kulhavy1-281/+272
Instead of using the `with` clause, mock patching is prepended to each testing method as a decorator. Change-Id: Ieb962d6fd0b9a6cdc649c44e39f69b543426dce9 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-07-11Add decorators in testcases for energy recording.Benoit HERARD8-207/+295
Test cases are: - rally (sanity and full) - refstack - cloudify_ims - vping_ssh It also fix a bug on "energy_recording" decorator of energy module. Change-Id: I625c214552ad1b89eaf7e196e706d7c69b37da33 Signed-off-by: Benoit HERARD <benoit.herard@orange.com>
2017-07-11New python script to check openstack deploymentjose.lausuch2-0/+339
This is a crucial part of functest env prepare. The former check_os.sh is missing some error control and is sometimes trying to connect to an empty endpoint if the sed/awk commands were wrong. This python script is more robust in that sense. You can see an example of execution in [1]. [1] http://paste.openstack.org/raw/614852/ Change-Id: I622befa13b58d2d31a08d307befb12a2be28fe4d Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-11Merge "Allow regex for blacklist scenarios/installers"Cedric Ollivier3-12/+68
2017-07-10Merge "Stop redefining $HOME"Morgan Richomme1-1/+1
2017-07-10Allow regex for blacklist scenarios/installersMartin Kulhavy3-12/+68
Reasoning: Some blacklisted test cases apply to a range of scenarios, e.g. both 'ha' and 'noha' and possibly even to all scenarios for a specific installer -- therefore the list of excluded scenarios can get long and unclear. For consistency with rally test case scenarios also allow regex for installers specification. Additionally, log the excluded test cases (if any) to debug log. Change-Id: Ie0bec35d1a6443203d4719ea5428c437c12e5e12 Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
2017-07-08Stop redefining $HOMECédric Ollivier1-1/+1
Then .rally is located in the real home directory. Change-Id: I3e261d34a41a4105aef8fc0a996df501d638c030 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-06Fix get_endpointLinda Wang1-2/+2
Different endpoint urls can be searched with 'admin', 'internal' and 'public' interface. Change-Id: I57207826d0dc2c18ce0e6a0abf09140f639f64ba Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-06Fix logger name in vping_base.pyCédric Ollivier1-1/+1
It conforms with logging.ini which requires qualnames. Change-Id: Ic2f849009c31a3a7bc406fc44c4917d19ccf2424 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-06Set repo_tempest to /src/tempestCédric Ollivier1-1/+1
It also calls pip install via the right src value to prevent from changing the working dir when building Ubuntu or Alpine containers. Change-Id: I236524ca270f4173e0636bee60a0f136d77ac07a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-05Merge "bugfix: vping support not_hugepage_configured pod"valentin boucher1-1/+1
2017-07-05Merge "Enable refstack work on https without SSL checks"valentin boucher3-13/+32
2017-07-05Merge "Enable cloudify_ims"valentin boucher1-2/+2
2017-07-05Enable cloudify_imsMorgan Richomme1-2/+2
- set VNF test cases as daily cases - remove enabled: False only for cloudify_ims - precise default generic scenrio (run only on basic scenario first) Vnf and cloudify_ims leveraging vnf are ready for merge [1] [1]: https://gerrit.opnfv.org/gerrit/#/c/36315/ Change-Id: I95ae89358e940ef5e9b8ceabc37588bbcfccfc6c Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-07-05Enable refstack work on https without SSL checksLinda Wang3-13/+32
When refstack is run in https environment, SSL checks will be skipped if no cacert file is provided. JIRA: FUNCTEST-828 Change-Id: Ib44582b4f2f508c7a255a1510dbdc33110fe0f14 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-05Convert files to Unix formatCédric Ollivier2-360/+360
It fixes "[cloudify_ims] Support Cloudify 4.0" [1] [1] https://gerrit.opnfv.org/gerrit/#/c/36315/ Change-Id: I70d04e781d7034f37783764ae5e8b399d62bb793 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-05Merge "[cloudify_ims] Support Cloudify 4.0"Cedric Ollivier13-1533/+872
2017-07-05bugfix: vping support not_hugepage_configured podSerenaFeng1-1/+1
this bug was fixed in https://gerrit.opnfv.org/gerrit/#/c/35181/ but was reverted in https://gerrit.opnfv.org/gerrit/#/c/35671/ Change-Id: I5cbbd61ac196dc39c073ffc69254d987e4807130 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-04Cleanup Tempest blacklist for Euphratesjose.lausuch1-62/+0
This list hasn't been updated in Danube. The idea is to clean it up and allow all the test cases to be run. If bugs are detected in Euphrates and there is an upstream bug report, the affected tests can be added again here. Change-Id: I44c8b4e8ae78dee7f13f761b6f7f6d8c09b2d0b0 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-04Merge "Update cli commands to call console scripts"Cedric Ollivier6-49/+13
2017-07-04Merge "Apply restrictive file permissions"Cedric Ollivier5-7/+0
2017-07-03[cloudify_ims] Support Cloudify 4.0boucherv13-1533/+872
- Delete all shell commands to use cloudify python lib - Cloudify Manager installation with a packaged image - SNAPS integration - Adapt test_vnf unit tests - Initiate test cloudify_ims unit tests (to be completed) JIRA: FUNCTEST-838 Change-Id: Ia4b499d4155e6af5d37d6d5cf4310a5a9693c7ce Signed-off-by: boucherv <valentin.boucher@orange.com> Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-07-03Merge "Energy monitoring SDK update."Jose Lausuch3-13/+133
2017-07-02Update cli commands to call console scriptsCédric Ollivier6-49/+13
Change-Id: I401879d7ec713b5307817da8b001838c35d9d731 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-02Apply restrictive file permissionsCédric Ollivier5-7/+0
It conforms with [1] by creating a new venv which checks the unix permissions. As jjobs call Functest console scripts [2], all perms can be 644. Dockerfiles are updated as well. [1] https://security.openstack.org/guidelines/dg_apply-restrictive-file-permissions.html [2] https://gerrit.opnfv.org/gerrit/#/c/36805/ Depends-On: I9209e6efa1b493e24135402a46df72aaa14115d1 Change-Id: I31bc7f12b775928845e23b6b40288b0a50b87219 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-02Stop modifying unix perm in cloudify_imsCédric Ollivier1-5/+1
It should be noted that several mockey patches should have been added in the related unit tests. Change-Id: I04bf003bc6beed1580c5d052c588f6f4ac23f768 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-01Energy monitoring SDK update.Benoit HERARD3-13/+133
add get_current scenario in EnergyRecorder class enable_recording decorator change: If a recording session was existing at startup, restart it at the end, else stop recording Change-Id: I91524824acb60275e0329452b7d7df2346d7884f Signed-off-by: Benoit HERARD <benoit.herard@orange.com>
2017-06-30Define download_images.sh and check_os.sh as scriptsCédric Ollivier6-272/+4
It also updates all python scripts which call check_os.sh. The former healthcheck.sh is removed. No shell script must be executable in git. Change-Id: If4e8deb50ebd635a9091e3bb79ef61c07b9660dc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Define console_scriptsCédric Ollivier10-45/+25
Only prepare_env.py and run_tests.py remain executable to avoid breaking the gate. As soon as the jenkins jobs are updated to run them from $PATH, tox will be updated to protect against chmod a+x py files. Dockerfile will be simplified as well. Change-Id: Iac1a7ceb6b344e800177226ea39919826f6d3735 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Fix unix permissionsCédric Ollivier2-0/+0
Tox will be updated to forbid chmod +ax py files. Change-Id: I85d4b4a64ec7f3151ab2f24ad09bd7c1144ebe18 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Update securityscanning section in testcases.yamlCédric Ollivier1-1/+1
It follows the next updates of the securityscanning package: - Define config.ini as data_file [1] - Define security_scan console script [2] [1] https://gerrit.opnfv.org/gerrit/36635 [2] https://gerrit.opnfv.org/gerrit/36771 Depends-On: I54ffa61f4bcd366c185596056b49e492c88cc78b Change-Id: I342c00392bb68aad704a89060841eac665e91bdb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-30Merge "Added unit tests for vping."Jose Lausuch3-99/+212
2017-06-30Define ODL console_scriptCédric Ollivier2-36/+39
main() is excluded from coverage as it usually parses argv. It also renames ODLTests main() to run_suites() not to exclude this method. Change-Id: I3109a65166b21d93e3e376912a32d364931a7ba5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-29Merge "SNAPS tests now support offline testing."Jose Lausuch8-46/+26
2017-06-29Remove BGPVPN utils in Functestjose.lausuch2-90/+0
These util functions should be under control of the SDNVPN project. After [1] and [2] it is safe to remove them in Functest [1] https://gerrit.opnfv.org/gerrit/#/c/36655/ [2] https://gerrit.opnfv.org/gerrit/#/c/36505/ Change-Id: I2f6596cd60678bb0c50adb9b4bc0d59545c3fb0a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-06-29Merge "Fix refstack_defcore"Jose Lausuch3-39/+9
2017-06-28Leverage on parser python packages in DockerfileCédric Ollivier1-1/+0
It also stops calling parser_install.sh. This file is replaced by the 2 new requirements in docker/thirdparty-requirements.txt: - tosca-parser - heat-translator Change-Id: Ic9dcdd81df9800fc8e559a07f9c100a20bea2290 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-28Update paths in functest/ci/testcases.yamlCédric Ollivier1-3/+3
It follows the changes switching to python packages. It shall be noted that several cmds could be enhanced. Change-Id: I8cf3595d1e8044b650deb4ec733bf973c0bf1b3f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-28Fix refstack_defcoreLinda Wang3-39/+9
As refstack-client is reinstalled only by the shell setup_env, the path of .venv and .tempest have been changed. Change-Id: Id50d0c6384295c2448705961942104abbd799b9b Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-28Merge "Remove Rally requests scenario"Jose Lausuch4-27/+1
2017-06-27Added unit tests for vping.spisarski3-100/+213
Also removed some instance variables and unnecessary methods. JIRA: FUNCTEST-813 Change-Id: I13895674a9fd3de16c6a19410661440c5380c2f8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>