aboutsummaryrefslogtreecommitdiffstats
path: root/functest
AgeCommit message (Collapse)AuthorFilesLines
2018-03-12Rewrite refstack testcaseCédric Ollivier6-412/+76
It now leverages on rally to factorize code between all tempest-based testcases. refstack-client is also added as requirement. JIRA: FUNCTEST-942 Change-Id: Ieee845327f8736582d77b898edd6c9edd00667e0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-11Fix many pylint warningsCédric Ollivier8-18/+17
Only pylint warnings in vnf modules has to be fixed now. Change-Id: Ie71230072a51bb72ec0b1d4fef2652494d29948e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-11Bypass APEX-570 to allow gating juju_epcCédric Ollivier1-1/+9
This temporarily fix aims at testing juju_epc vs a non default region name [1]. It must be removed as soon as APEX is fixed [2]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/lastFailedBuild/console [2] https://jira.opnfv.org/browse/APEX-570 Change-Id: I0724b694efb43709d43da6a30e11d1daafee47d8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-11Refactor configure_tempest_patrole()Cédric Ollivier1-19/+9
Change-Id: I1c34b3bce68a7d57d63fb2e5e4b6aa003dda8f61 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-10Improve tempest files managementCédric Ollivier3-7/+22
Calling apply_tempest_blacklist() is no longer mandatory. Change-Id: Id9a4e970c8acca066a36be89920745127867cd63 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-10Add patrole in opnfv/functest-restapiCédric Ollivier1-0/+22
Change-Id: I983898c27477986d9a5610e1df966fd00a8bc785 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-10Enhance patrole configurationsCédric Ollivier1-2/+4
It allows listing the OpenStack services tested or setting test exlusions (e.g. tests requiring GRE as overlay). It should be noted that Keystone and Nova can't currently be tested without their default policy.json. Change-Id: I8909694b4ffc315959504441f5ea0b1f3023fe7c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-09Add one missing res dir in refstackCédric Ollivier1-9/+9
It completes "Allow overriding tempest output dir" [1] [1] https://gerrit.opnfv.org/gerrit/#/c/53241/ Change-Id: I236a1eb708de324dd42440897e317ce2d0787ffc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-08Remove duplicate ubuntu trusty/14.04 os imageValentin Boucher4-5/+4
VNF testcase use some Operating System image 2 of those are the same but not with the same name Change-Id: Ide5ae683f606f7f58535c0a59cec45e4a30d225c Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-03-07Add neutron and glance policy.json for patroleCédric Ollivier1-1/+2
It only runs tests about neutron and glance because their policy.json can be still downloaded. Installers could override them via docker volumes if needed. Several tests about provider networks are currently excluded because GRE is selected. Change-Id: Ic4e2274e3f53e66be0174e117993e8c307b96bf9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-07Allow overriding tempest output dirCédric Ollivier5-51/+63
Change-Id: I31a5d2772bab168b3cb4e6b0713d6e95aa5b6fd7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-07Add a new env var for nameserverLinda Wang10-13/+30
We should still consider that the nameserver must be handled by all installers instead [1]: - by configuring one or more DNS resolvers in dhcp_agent.ini - by asking a local resolv It eases setting the nameserver in testcases and then allows gating them. 8.8.8.8 is still defined by default. [1] https://docs.openstack.org/neutron/pike/admin/config-dns-res.html Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416 Signed-off-by: Linda Wang <wangwulin@huawei.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-07Define a new env var for volume device nameCédric Ollivier3-6/+7
It eases modifying the volume device name written in tempest config. Fuel jobs should be adapted to set the right value (vdc) which differs from default (vdb). Change-Id: I09212018f94daa800ede815bd3586cceed0d54e7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-05Merge "Fix Rally scenario parameters representation"Cedric Ollivier1-7/+7
2018-03-05Fix Rally scenario parameters representationJuha Kosonen1-7/+7
Use printable format of string in scenario input parameters. JIRA: FUNCTEST-946 Change-Id: Ic4826506a6f030e749fecdc7f880e9f911f9c987 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2018-03-05Merge "Load SfcFunctest instead of running a bash script"Cedric Ollivier1-4/+2
2018-03-05Config volume_device_name as vdc for fuelLinda Wang1-0/+3
JIRA: FUNCTEST-947 Change-Id: I69a83dc69eaa4379c630e201e837f29311c716b9 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-03-05Load SfcFunctest instead of running a bash scriptCédric Ollivier1-4/+2
It allows publishing tests details. Change-Id: Iffc49f8258cdd2c145750343003f21921ac7ff67 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-04Set user domain name when creating usersCédric Ollivier2-0/+2
It updates juju_epc.py and cloudify_vrouter.py. Change-Id: I8cf97e31d78a4d48ad815faadc8e4130581e1c21 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-04Support domains when creating project/userLinda Wang1-2/+4
JIRA: FUNCTEST-945 Change-Id: Ibfce5a7d2ebb59a83ad5b2b6344c2fc87d7f3e84 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-03-03Set default volume_device_name = vdbCédric Ollivier1-1/+1
refstack_defcore is currently failing on all installers. It will highlight the right value per installer. A better way is to manage the device name by a new env var set by all installers (it may depend on kdrive configurations) JIRA: FUNCTEST-947 Change-Id: If1c12bc6798bc89136715bc78f2ac0b798e669e6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-02Merge "Leverage on Xtesting"valentin boucher48-3425/+161
2018-03-02Leverage on XtestingCédric Ollivier48-3425/+161
It removes all the files which have moved to Xtesting. Vnf inheritances and env management will be improved in other changes. It keeps the same tree thanks to a symlink to allow publishing artifacts. Change-Id: I551bbd3f344cdab0158a50b7b09e541576695631 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-01Enable barometer run on compassLinda Wang1-1/+1
Change-Id: Ic6f4f2a2d06dc70338da3bad53deca0a62a03232 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-02-28Merge "Add guid in neutron resource names in juju_epc"Cedric Ollivier1-5/+8
2018-02-28Merge "Integrate Patrole as a new testcase"Cedric Ollivier2-0/+79
2018-02-28Merge "Support different user/project domain values"valentin boucher3-5/+33
2018-02-28Integrate Patrole as a new testcaseCédric Ollivier2-0/+79
It's published in a new container because the current results don't allow gating. 0.2 is selected to meet OpenStack Pike's requirements. Co-Authored-By: Rémi Le Trocquer <remi.letrocquer@orange.com> Change-Id: Iafcf8f66ee3531fc43136886095774885bfc3150 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Add guid in neutron resource names in juju_epcCédric Ollivier1-5/+8
JIRA: FUNCTEST-937 Change-Id: Ia0912dfe2cdbecf4c169aecb6ba1b71774e0a02f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Remove obsolete Functest utilsCédric Ollivier2-183/+2
Only 3 functions are kept as part of our framework: - execute_command_raise() - execute_command() - get_parameter_from_yaml() Change-Id: I966a1d6122391dae85aa3c77813ad2f1698ceb45 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Merge "Raise exceptions when SDN_CONTROLLER_IP is None"Cedric Ollivier2-4/+14
2018-02-26Merge "Stop raising keystoneauth1 exceptions in odl unit tests"Cedric Ollivier1-2/+1
2018-02-26Merge "Fix KeyError of OS_AUTH_URL"valentin boucher1-1/+1
2018-02-26Raise exceptions when SDN_CONTROLLER_IP is NoneCédric Ollivier2-4/+14
Change-Id: Ia0d00a6b3c4c4936dc10602e838f507beea0c592 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Stop raising keystoneauth1 exceptions in odl unit testsCédric Ollivier1-2/+1
It simply raises Exceptions to avoid depending on keystoneauth1. Snaps may also reraise another exception. Change-Id: Ib3041b2d8ff51ee098f2bf0b9918079b7945abf3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Remove openstack utilsCédric Ollivier2-3270/+0
They have been obsolete since we fully switched to snaps. The files are being moved to SDNVPN which is the last project using them [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/52631/ Change-Id: I277b92a04cf6bc7b30015eed76f03f17830fad2b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Fix KeyError of OS_AUTH_URLLinda Wang1-1/+1
Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a Signed-off-by: Linda Wang <wangwulin@huawei.com>
2018-02-26Switch to snaps in orchestra testcasesCédric Ollivier2-279/+90
It also stops using the floating ip in userdata to avoid a race condition (all-in-one). The DNS server is now configured by Neutron instead of the testcases. Change-Id: I6efed71339d98403f7fd137ff50f1941b5b5a03c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-25Fix default identity version in conf_utilsCédric Ollivier1-2/+1
Change-Id: I2e78958b3c96b36a5fac636a1817424fb102afea Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-24Set Energy default values to NoneCédric Ollivier2-3/+3
It conforms with the other default values. Change-Id: Id46110c5aedf244f94e83b5b0389b135f075ffc8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-24Print env vars and env_fileCédric Ollivier3-13/+16
It simply eases detecting wrong inputs [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/796/console Change-Id: I0784c29265c69a6ba4a049226196bcdd70b0a572 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-24Automatically download defcore.txtCédric Ollivier9-576/+112
It stops writing files in Functest package dirs and cleans instance variables in refstack modules too. Change-Id: Iaddbe4fbaf12d1af207b86d4e44258efdc6d6f3a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-24Update Functest to meet last snaps updatesCédric Ollivier3-10/+11
It removes obsolete mockey patches in Rally unit tests and adds keystone client as params when needed in orchestra_*ims.py [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/52473/ Change-Id: Id02954d16f5f54cc0c390fadb498e14c6bab6ff9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Switch from CONST to CONFCédric Ollivier24-280/+224
It also removes constants.CONST and env.Environment which are now useless. Depends-On: I764a0a2a24447c941d1e726f3116593b29dd1c1e Depends-On: I6cfa832466dcefd737314633d807512e46267a69 Change-Id: Ife41c59d9f2e6ec4e49df38af962039f99554bc5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Merge "Use constants for Functest config file"Cedric Ollivier10-26/+31
2018-02-22Support different user/project domain valuesValentin Boucher3-5/+33
For the moment, VNF works well only if OS_PROJECT_DOMAIN_NAME=Default OS_USER_DOMAIN_NAME=Default It's now possible to use domain != Default JIRA: FUNCTEST-935 Change-Id: I779a93538662ff32906d91d7cf3b2c5c3e872765 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-02-22Use constants for Functest config fileCédric Ollivier10-26/+31
env_file can't be defined in a config file simply because it's an entry point (Jenkins jobs, end users) Change-Id: Ie23c0ef90efc839d60f0f3a9754c58746b1f3a00 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Merge "Unify security group operations"Cedric Ollivier1-7/+7
2018-02-21Merge "Leverage of snaps creds to get the right region name"Cedric Ollivier1-7/+2
2018-02-21Merge "Print stdout and stderr when calling commands over SSH"Cedric Ollivier2-23/+30