aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
AgeCommit message (Collapse)AuthorFilesLines
2017-07-19Add id to test_list for tempest_customLinda Wang1-2/+2
Tempest_custom will fail if only the test name is provided without id. Change-Id: I170eff4215bcb09c6469072079091670aabaad5b Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-18Merge "Change calls to SNAPS library exposing OpenStack instance objects."Jose Lausuch2-2/+2
2017-07-17Merge "Conform the RefStack testcase with the Rally context"Jose Lausuch1-4/+9
2017-07-17Merge "Wait for refstack-client to finish"Jose Lausuch1-31/+18
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-15Merge "Correct odl port for compass installer"Cedric Ollivier1-1/+1
2017-07-14Change calls to SNAPS library exposing OpenStack instance objects.spisarski2-2/+2
Openstack object structures can change when new API versions are released and SNAPS no longer is exposing OpenStack object implementations as this makes the library brittle. The only two SNAPS method calls affected are when functest needs to query for external networks and when vPing Userdata needs to obtain the console logs. JIRA: SNAPS-125 Change-Id: If6000e50eaa274713d9a6c964eabd1f73ded684e Signed-off-by: spisarski <s.pisarski@cablelabs.com>
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-13Correct odl port for compass installerYifei Xue1-1/+1
For the port 8181 has been used by OSA repo LXC in compass deployment. So we change the port here in functest to 8080. Change-Id: Ia262319f7513497db6e849521de6be6328ec97ba Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-07-12Merge "Add odl configurations for odl testcase in daisy environment"Cedric Ollivier1-0/+4
2017-07-12Add odl configurations for odl testcase in daisy environmentAlex Yang1-0/+4
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-11Add decorators in testcases for energy recording.Benoit HERARD4-188/+264
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-10Allow regex for blacklist scenarios/installersMartin Kulhavy2-11/+36
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-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-05Merge "bugfix: vping support not_hugepage_configured pod"valentin boucher1-1/+1
2017-07-05Enable refstack work on https without SSL checksLinda Wang1-8/+9
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-05Merge "[cloudify_ims] Support Cloudify 4.0"Cedric Ollivier7-562/+455
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-03[cloudify_ims] Support Cloudify 4.0boucherv7-562/+455
- 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-02Apply restrictive file permissionsCédric Ollivier2-0/+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-06-30Define download_images.sh and check_os.sh as scriptsCédric Ollivier2-263/+0
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 Ollivier5-25/+8
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-30Merge "Added unit tests for vping."Jose Lausuch2-99/+55
2017-06-30Define ODL console_scriptCédric Ollivier1-12/+15
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 Lausuch5-26/+13
2017-06-28Fix refstack_defcoreLinda Wang1-20/+5
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-27Added unit tests for vping.spisarski2-100/+56
Also removed some instance variables and unnecessary methods. JIRA: FUNCTEST-813 Change-Id: I13895674a9fd3de16c6a19410661440c5380c2f8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27SNAPS tests now support offline testing.spisarski5-26/+13
Images by type (cirros, centos, ubuntu) can now have the download URL be overridden, told to leverage a local file, or have custom configuration when using the snaps.openstack.tests.openstack_tests.py image settings helper functions. JIRA: FUNCTEST-809 Change-Id: I790094a7a26eb5a55f53d6e875c658dc5e7ac2f9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Remove Rally requests scenarioJuha Kosonen3-19/+1
HttpRequests scenario is not directly related to OpenStack and not supported by Rally in https environment. Change-Id: I2e91d129d82dfaba62eca25e3e4890ff54f52ac6 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2017-06-27Merge "Increase timeout of Open Baton installation"Jose Lausuch1-2/+2
2017-06-27Merge "Remove obsolete repos in functest/ci/config_functest.yaml"Jose Lausuch1-1/+2
2017-06-27Increase timeout of Open Baton installationMichael Pauls1-2/+2
Change-Id: Ifdc24a3fc9e2c315b41f9e68bccb88df36252b0c JIRA: ORCHESTRA-14 Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
2017-06-27Merge "Added unit tests for api_check, health_check, and smoke tests."Jose Lausuch3-3/+27
2017-06-26Fixed problem to vping userdata introducted by SNAPS-OO patch.spisarski1-1/+1
Changed get_vm_inst() to return a domain object forgot to change the call in vping_userdata.py. JIRA: SNAPS-92 Change-Id: I7585dcde483c39fa850e5184686f42bbf2e8f3c5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-26Remove obsolete repos in functest/ci/config_functest.yamlCédric Ollivier1-1/+2
It completes "Use directly OpenStack project packages" [1]. kingbird becomes a dependency. [1] https://gerrit.opnfv.org/gerrit/#/c/36125/ Change-Id: I2cb9e3a2146a2b2bbae89dde9917c5ace70048a6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-20Change barometer module to loadJose Lausuch2-24/+0
As [1] is merged, the way to call the barometer test case is different as it is hosted in Barometer repo instead of Functest. The former files are also simply removed too. baro-tests is no longer a requirement. It is installed as any third party project. [1] https://gerrit.opnfv.org/gerrit/#/c/35927/ Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Iea56b48fa781600eb3a6ac74662ea8a29f556f99 Signed-off-by: Jose Lausuch <jose.lausuch@ericsson.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-20Added unit tests for api_check, health_check, and smoke tests.spisarski3-3/+27
In addition to the creation of the unit tests, this patch simplifies the mocks for connection check as there was an unused annotation. This patch also refactors the building of the test suite from the constructor to the run() method. JIRA: FUNCTEST-813 Change-Id: I7ff5d0389db36141a33ee3a8f76e04b922f8a95f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Remove all references to /home/opnfv/repos/functestCédric Ollivier9-44/+55
It also removes relative (and incomplete) references which could be defined in modules instead of this global configuration. Change-Id: Ie20dc3547e49b6224aa8100cd380d37b87ece5a9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-13Merge "Refactor core VNF class"valentin boucher5-232/+151
2017-06-07Configure the param auth_version in tempest.confLinda Wang1-0/+5
1. If the auth_url is "https://192.168.31.222:443/identity-admin/v3", the auth_version in tempest.conf is supposed to be "v3", not "id". 2. For rally 0.8.1. it is a bug when obtaining the auth_version, please see [1], which has been fixed in rally master. [1]: https://review.openstack.org/#/c/468599/ Change-Id: Ia7474938a741a0954f17f7c7650544dbc0a28853 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-06Refactor core VNF classMorgan Richomme5-232/+151
- Simplify processing - Implement run method to inherit testcase methods - Add unit tests - Fix all pylint issues It also obliges vnf and its uts to be rated 10/10 by pylint. JIRA: FUNCTEST-830 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I8dd24eea55089277c9e5b2b51fb14dc377f2fcaf Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-02Use constants in odlLinda Wang1-3/+5
Change-Id: I134b0efd3dd0faec389087a4dac59de09eae087e Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-02Merge "Use CONST to retrieve db_url rather than getter function"Jose Lausuch1-2/+1
2017-06-01Use CONST to retrieve db_url rather than getter functionLinda Wang1-2/+1
1. Remove get_db_url() 2. If TEST_DB_URL declared in env, update test_db_url in config_functest.yaml file during env preparation 3. No matter TEST_DB_URL declared in env or not, Result_DB = CONST.__getattribute__("results_test_db_url") JIRA: FUNCTEST-763 Change-Id: I20da7ef98bbcc56731e0ff7061b05c1dde6cbfc3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-31Added unit tests for the connection_check test case.spisarski2-6/+22
JIRA: FUNCTEST-813 Change-Id: Ib851a3942e181b1a91cad695504613868a340d15 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-30Merge "Define create_snapshot() and clean() in TestCase"Cedric Ollivier4-8/+8