functest.git
6 years agoFix tempest_custom 39/53639/1
Linda Wang [Tue, 13 Mar 2018 07:54:10 +0000 (07:54 +0000)]
Fix tempest_custom

Change-Id: I684c06eae899d9bc468e0be6a1537f9c942e86ce
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoRemove orchestra testcases 91/53591/1
Cédric Ollivier [Mon, 12 Mar 2018 16:32:04 +0000 (17:32 +0100)]
Remove orchestra testcases

They are incompatible with Pike and they have to be removed without
any deep update.

The testcases will be re-renabled if updated before 03/16/18.

Change-Id: Ibf656db6ba4177eae44feb41cd5d314b7408d4de
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Stopping setting identity-feature-enabled if Patrole"
Cedric Ollivier [Mon, 12 Mar 2018 14:42:35 +0000 (14:42 +0000)]
Merge "Stopping setting identity-feature-enabled if Patrole"

6 years agoMerge changes from topic 'refactor_tempest'
Cedric Ollivier [Mon, 12 Mar 2018 14:42:23 +0000 (14:42 +0000)]
Merge changes from topic 'refactor_tempest'

* changes:
  Rewrite refstack testcase
  Fix many pylint warnings

6 years agoMerge changes from topic 'refactor_tempest'
Cedric Ollivier [Mon, 12 Mar 2018 14:38:42 +0000 (14:38 +0000)]
Merge changes from topic 'refactor_tempest'

* changes:
  Refactor configure_tempest_patrole()
  Improve tempest files management

6 years agoStopping setting identity-feature-enabled if Patrole 29/53529/1
Cédric Ollivier [Mon, 12 Mar 2018 12:32:14 +0000 (13:32 +0100)]
Stopping setting identity-feature-enabled if Patrole

It avoids differing from all other tempest-based testcases for a
useless config option.

Change-Id: I02e1786f0ba3c1f7da11f258e80f57ca624247f9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Add patrole in opnfv/functest-restapi"
valentin boucher [Mon, 12 Mar 2018 12:22:56 +0000 (12:22 +0000)]
Merge "Add patrole in opnfv/functest-restapi"

6 years agoRewrite refstack testcase 63/53463/6
Cédric Ollivier [Sun, 11 Mar 2018 11:44:01 +0000 (12:44 +0100)]
Rewrite refstack testcase

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>
6 years agoFix many pylint warnings 75/53475/1
Cédric Ollivier [Sun, 11 Mar 2018 18:16:09 +0000 (19:16 +0100)]
Fix many pylint warnings

Only pylint warnings in vnf modules has to be fixed now.

Change-Id: Ie71230072a51bb72ec0b1d4fef2652494d29948e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoBypass APEX-570 to allow gating juju_epc 65/53465/1
Cédric Ollivier [Sun, 11 Mar 2018 12:05:18 +0000 (13:05 +0100)]
Bypass APEX-570 to allow gating juju_epc

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>
6 years agoRefactor configure_tempest_patrole() 61/53461/1
Cédric Ollivier [Sun, 11 Mar 2018 08:48:16 +0000 (09:48 +0100)]
Refactor configure_tempest_patrole()

Change-Id: I1c34b3bce68a7d57d63fb2e5e4b6aa003dda8f61
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoImprove tempest files management 57/53457/1
Cédric Ollivier [Sat, 10 Mar 2018 20:06:37 +0000 (21:06 +0100)]
Improve tempest files management

Calling apply_tempest_blacklist() is no longer mandatory.

Change-Id: Id9a4e970c8acca066a36be89920745127867cd63
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd patrole in opnfv/functest-restapi 53/53453/1
Cédric Ollivier [Sat, 10 Mar 2018 13:35:53 +0000 (14:35 +0100)]
Add patrole in opnfv/functest-restapi

Change-Id: I983898c27477986d9a5610e1df966fd00a8bc785
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoEnhance patrole configurations 51/53451/2
Cédric Ollivier [Sat, 10 Mar 2018 12:34:43 +0000 (13:34 +0100)]
Enhance patrole configurations

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>
6 years agoAdd one missing res dir in refstack 33/53433/1
Cédric Ollivier [Fri, 9 Mar 2018 20:01:15 +0000 (21:01 +0100)]
Add one missing res dir in refstack

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>
6 years agoRemove duplicate ubuntu trusty/14.04 os image 11/53311/1
Valentin Boucher [Thu, 8 Mar 2018 14:21:39 +0000 (09:21 -0500)]
Remove duplicate ubuntu trusty/14.04 os image

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>
6 years agoAdd neutron and glance policy.json for patrole 23/53223/6
Cédric Ollivier [Wed, 7 Mar 2018 09:26:26 +0000 (10:26 +0100)]
Add neutron and glance policy.json for patrole

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>
6 years agoAllow overriding tempest output dir 41/53241/3
Cédric Ollivier [Wed, 7 Mar 2018 13:02:08 +0000 (14:02 +0100)]
Allow overriding tempest output dir

Change-Id: I31a5d2772bab168b3cb4e6b0713d6e95aa5b6fd7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSet ODL tests and refstack client refs 21/53221/1
Cédric Ollivier [Wed, 7 Mar 2018 04:57:33 +0000 (05:57 +0100)]
Set ODL tests and refstack client refs

To prepare F-release, we should set git commit ids for these
dependencies which follow the rolling release model (master).

Change-Id: I3c791040ea5ec700cfa845ae642e6d862c49281f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd a new env var for nameserver 73/53073/3
Linda Wang [Mon, 5 Mar 2018 03:14:23 +0000 (03:14 +0000)]
Add a new env var for nameserver

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>
6 years agoDefine a new env var for volume device name 95/53195/2
Cédric Ollivier [Wed, 7 Mar 2018 01:15:20 +0000 (02:15 +0100)]
Define a new env var for volume device name

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>
6 years agoMerge "Fix Rally scenario parameters representation"
Cedric Ollivier [Mon, 5 Mar 2018 16:26:34 +0000 (16:26 +0000)]
Merge "Fix Rally scenario parameters representation"

6 years agoFix Rally scenario parameters representation 01/53101/1
Juha Kosonen [Mon, 5 Mar 2018 15:17:53 +0000 (17:17 +0200)]
Fix Rally scenario parameters representation

Use printable format of string in scenario input parameters.

JIRA: FUNCTEST-946

Change-Id: Ic4826506a6f030e749fecdc7f880e9f911f9c987
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoMerge "Load SfcFunctest instead of running a bash script"
Cedric Ollivier [Mon, 5 Mar 2018 14:49:55 +0000 (14:49 +0000)]
Merge "Load SfcFunctest instead of running a bash script"

6 years agoConfig volume_device_name as vdc for fuel 89/53089/3
Linda Wang [Mon, 5 Mar 2018 09:02:48 +0000 (09:02 +0000)]
Config volume_device_name as vdc for fuel

JIRA: FUNCTEST-947

Change-Id: I69a83dc69eaa4379c630e201e837f29311c716b9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoLoad SfcFunctest instead of running a bash script 85/53085/1
Cédric Ollivier [Mon, 5 Mar 2018 07:45:51 +0000 (08:45 +0100)]
Load SfcFunctest instead of running a bash script

It allows publishing tests details.

Change-Id: Iffc49f8258cdd2c145750343003f21921ac7ff67
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoUpdate module to xtesting.core.feature for parser 59/53059/1
Cédric Ollivier [Sun, 4 Mar 2018 17:38:44 +0000 (18:38 +0100)]
Update module to xtesting.core.feature for parser

Change-Id: I8c4e34b7907d1809e100c6677101b8076272f493
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSet user domain name when creating users 55/53055/1
Cédric Ollivier [Sun, 4 Mar 2018 11:19:15 +0000 (12:19 +0100)]
Set user domain name when creating users

It updates juju_epc.py and cloudify_vrouter.py.

Change-Id: I8cf97e31d78a4d48ad815faadc8e4130581e1c21
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoUpdate xtesting version to 0.22.0 51/53051/2
Cédric Ollivier [Sun, 4 Mar 2018 10:37:33 +0000 (11:37 +0100)]
Update xtesting version to 0.22.0

Change-Id: I4dc3eb42d122986fb2ac131279aab57cdf92d916
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSupport domains when creating project/user 47/53047/1
Linda Wang [Sun, 4 Mar 2018 07:24:04 +0000 (07:24 +0000)]
Support domains when creating project/user

JIRA: FUNCTEST-945

Change-Id: Ibfce5a7d2ebb59a83ad5b2b6344c2fc87d7f3e84
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoSet default volume_device_name = vdb 37/53037/1
Cédric Ollivier [Sat, 3 Mar 2018 18:17:36 +0000 (19:17 +0100)]
Set default volume_device_name = vdb

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>
6 years agoMerge "Add functest-patrole in build.sh"
valentin boucher [Fri, 2 Mar 2018 18:41:27 +0000 (18:41 +0000)]
Merge "Add functest-patrole in build.sh"

6 years agoMerge "Set networking-bgpvpn version in upper-constraints.txt"
valentin boucher [Fri, 2 Mar 2018 18:38:45 +0000 (18:38 +0000)]
Merge "Set networking-bgpvpn version in upper-constraints.txt"

6 years agoMerge "Leverage on Xtesting"
valentin boucher [Fri, 2 Mar 2018 18:37:54 +0000 (18:37 +0000)]
Merge "Leverage on Xtesting"

6 years agoSet networking-bgpvpn version in upper-constraints.txt 07/53007/1
Cédric Ollivier [Fri, 2 Mar 2018 16:20:25 +0000 (17:20 +0100)]
Set networking-bgpvpn version in upper-constraints.txt

As it's not listed in OpenStack requirements, it must be pinned in
Functest.

Change-Id: I4e692ef00d4b6e5dad9899ae279891699c9dcebc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd functest-patrole in build.sh 99/52999/1
Cédric Ollivier [Fri, 2 Mar 2018 14:38:40 +0000 (15:38 +0100)]
Add functest-patrole in build.sh

Change-Id: I4a749a0981a81a5b032fa564719c51db2e6c6551
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoLeverage on Xtesting 39/52939/4
Cédric Ollivier [Thu, 1 Mar 2018 14:20:10 +0000 (15:20 +0100)]
Leverage on Xtesting

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>
6 years agoMerge "Add xtesting in upper-constraints.txt"
Cedric Ollivier [Thu, 1 Mar 2018 16:53:37 +0000 (16:53 +0000)]
Merge "Add xtesting in upper-constraints.txt"

6 years agoMerge "Set universal wheels"
Cedric Ollivier [Thu, 1 Mar 2018 16:53:30 +0000 (16:53 +0000)]
Merge "Set universal wheels"

6 years agoAdd xtesting in upper-constraints.txt 17/52917/3
Cédric Ollivier [Thu, 1 Mar 2018 07:58:53 +0000 (08:58 +0100)]
Add xtesting in upper-constraints.txt

functest-kubernetes requires xtesting and still reads this file.

Change-Id: I18d357cc88ae9a7e80aca568d408823291dc2ab3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoEnable barometer run on compass 05/52905/1
Linda Wang [Thu, 1 Mar 2018 04:58:07 +0000 (04:58 +0000)]
Enable barometer run on compass

Change-Id: Ic6f4f2a2d06dc70338da3bad53deca0a62a03232
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoSet universal wheels 83/52883/1
Cédric Ollivier [Thu, 1 Mar 2018 01:21:53 +0000 (02:21 +0100)]
Set universal wheels

Change-Id: I869679def8913ac804899655d80dbc6a830a6378
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Add guid in neutron resource names in juju_epc"
Cedric Ollivier [Wed, 28 Feb 2018 15:53:01 +0000 (15:53 +0000)]
Merge "Add guid in neutron resource names in juju_epc"

6 years agoMerge "Integrate Patrole as a new testcase"
Cedric Ollivier [Wed, 28 Feb 2018 15:03:20 +0000 (15:03 +0000)]
Merge "Integrate Patrole as a new testcase"

6 years agoMerge "Support different user/project domain values"
valentin boucher [Wed, 28 Feb 2018 14:49:11 +0000 (14:49 +0000)]
Merge "Support different user/project domain values"

6 years agoIntegrate Patrole as a new testcase 09/52809/2
Cédric Ollivier [Wed, 21 Feb 2018 06:56:26 +0000 (07:56 +0100)]
Integrate Patrole as a new testcase

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>
6 years agoAdd guid in neutron resource names in juju_epc 67/52667/3
Cédric Ollivier [Mon, 26 Feb 2018 15:04:44 +0000 (16:04 +0100)]
Add guid in neutron resource names in juju_epc

JIRA: FUNCTEST-937

Change-Id: Ia0912dfe2cdbecf4c169aecb6ba1b71774e0a02f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemove obsolete Functest utils 85/52685/1
Cédric Ollivier [Mon, 26 Feb 2018 17:01:01 +0000 (18:01 +0100)]
Remove obsolete Functest utils

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>
6 years agoMerge "Raise exceptions when SDN_CONTROLLER_IP is None"
Cedric Ollivier [Mon, 26 Feb 2018 16:50:45 +0000 (16:50 +0000)]
Merge "Raise exceptions when SDN_CONTROLLER_IP is None"

6 years agoMerge "Stop raising keystoneauth1 exceptions in odl unit tests"
Cedric Ollivier [Mon, 26 Feb 2018 16:50:36 +0000 (16:50 +0000)]
Merge "Stop raising keystoneauth1 exceptions in odl unit tests"

6 years agoMerge "Fix KeyError of OS_AUTH_URL"
valentin boucher [Mon, 26 Feb 2018 15:24:54 +0000 (15:24 +0000)]
Merge "Fix KeyError of OS_AUTH_URL"

6 years agoRaise exceptions when SDN_CONTROLLER_IP is None 45/52645/1
Cédric Ollivier [Mon, 26 Feb 2018 10:52:15 +0000 (11:52 +0100)]
Raise exceptions when SDN_CONTROLLER_IP is None

Change-Id: Ia0d00a6b3c4c4936dc10602e838f507beea0c592
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoStop raising keystoneauth1 exceptions in odl unit tests 43/52643/1
Cédric Ollivier [Mon, 26 Feb 2018 10:31:48 +0000 (11:31 +0100)]
Stop raising keystoneauth1 exceptions in odl unit tests

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>
6 years agoRemove openstack utils 37/52637/1
Cédric Ollivier [Mon, 26 Feb 2018 09:59:25 +0000 (10:59 +0100)]
Remove openstack utils

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>
6 years agoFix KeyError of OS_AUTH_URL 17/52617/2
Linda Wang [Mon, 26 Feb 2018 07:18:11 +0000 (07:18 +0000)]
Fix KeyError of OS_AUTH_URL

Change-Id: Iaaa657ebb8ed017429b640ffaaf03b6d204e887a
Signed-off-by: Linda Wang <wangwulin@huawei.com>
6 years agoSwitch to snaps in orchestra testcases 21/52621/1
Cédric Ollivier [Mon, 26 Feb 2018 07:44:48 +0000 (08:44 +0100)]
Switch to snaps in orchestra testcases

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>
6 years agoFix default identity version in conf_utils 19/52619/1
Cédric Ollivier [Sun, 25 Feb 2018 14:01:27 +0000 (15:01 +0100)]
Fix default identity version in conf_utils

Change-Id: I2e78958b3c96b36a5fac636a1817424fb102afea
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSet Energy default values to None 87/52587/1
Cédric Ollivier [Sat, 24 Feb 2018 16:04:16 +0000 (17:04 +0100)]
Set Energy default values to None

It conforms with the other default values.

Change-Id: Id46110c5aedf244f94e83b5b0389b135f075ffc8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoSwitch to $REPO in travis-ci jobs 85/52585/1
Cédric Ollivier [Sat, 24 Feb 2018 15:21:02 +0000 (16:21 +0100)]
Switch to $REPO in travis-ci jobs

It conforms with "Use functest repo variable" [1]

[1] https://gerrit.opnfv.org/gerrit/#/c/52513/

Change-Id: I09b438d784fbeb5e3686b441e6944c87c0f88382
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoPrint env vars and env_file 83/52583/1
Cédric Ollivier [Sat, 24 Feb 2018 10:41:33 +0000 (11:41 +0100)]
Print env vars and env_file

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>
6 years agoAutomatically download defcore.txt 21/52421/10
Cédric Ollivier [Wed, 21 Feb 2018 09:01:30 +0000 (10:01 +0100)]
Automatically download defcore.txt

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>
6 years agoUpdate Functest to meet last snaps updates 81/52581/3
Cédric Ollivier [Sat, 24 Feb 2018 11:09:20 +0000 (12:09 +0100)]
Update Functest to meet last snaps updates

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>
6 years agoMerge "Use functest repo variable"
Cedric Ollivier [Sat, 24 Feb 2018 11:41:11 +0000 (11:41 +0000)]
Merge "Use functest repo variable"

6 years agoUse functest repo variable 13/52513/1
Delia Popescu [Fri, 23 Feb 2018 09:50:44 +0000 (11:50 +0200)]
Use functest repo variable

related to: https://gerrit.opnfv.org/gerrit/#/c/52509/

JIRA: FUNCTEST-917

Change-Id: I79512253b37254b9247fda083500e160dba66d6f
Signed-off-by: Delia Popescu <delia.popescu@enea.com>
6 years agoSwitch from CONST to CONF 69/52469/2
Cédric Ollivier [Thu, 22 Feb 2018 16:43:35 +0000 (17:43 +0100)]
Switch from CONST to CONF

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>
6 years agoMerge "Use constants for Functest config file"
Cedric Ollivier [Thu, 22 Feb 2018 16:36:55 +0000 (16:36 +0000)]
Merge "Use constants for Functest config file"

6 years agoSupport different user/project domain values 29/52429/3
Valentin Boucher [Wed, 21 Feb 2018 20:44:52 +0000 (15:44 -0500)]
Support different user/project domain values

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>
6 years agoUse constants for Functest config file 89/52389/6
Cédric Ollivier [Wed, 21 Feb 2018 10:33:39 +0000 (11:33 +0100)]
Use constants for Functest config file

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>
6 years agoMerge "Unify security group operations"
Cedric Ollivier [Thu, 22 Feb 2018 07:48:49 +0000 (07:48 +0000)]
Merge "Unify security group operations"

6 years agoMerge "Leverage of snaps creds to get the right region name"
Cedric Ollivier [Wed, 21 Feb 2018 19:15:47 +0000 (19:15 +0000)]
Merge "Leverage of snaps creds to get the right region name"

6 years agoMerge "Print stdout and stderr when calling commands over SSH"
Cedric Ollivier [Wed, 21 Feb 2018 19:15:35 +0000 (19:15 +0000)]
Merge "Print stdout and stderr when calling commands over SSH"

6 years agoPrint stdout and stderr when calling commands over SSH 17/52417/2
Cédric Ollivier [Wed, 21 Feb 2018 17:12:53 +0000 (18:12 +0100)]
Print stdout and stderr when calling commands over SSH

It will help debugging possible issues vs APEX [1].

[1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/792/console

Change-Id: I610f5b0a7774440c51fa086fad4f61c9be0571dc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoUnify security group operations 33/52333/2
Cédric Ollivier [Mon, 19 Feb 2018 22:07:44 +0000 (23:07 +0100)]
Unify security group operations

It updates juju_epc to conform with cloudify_ims and
cloudify_vrouter regarding security group operations.

Change-Id: I2bc4a16ec17f2836564df82d3ceddd3bc73ece7a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoLeverage of snaps creds to get the right region name 13/52413/1
Cédric Ollivier [Wed, 21 Feb 2018 15:03:50 +0000 (16:03 +0100)]
Leverage of snaps creds to get the right region name

Else it gets the defaut value as it's unset in env.

Change-Id: Ic2a9cdaed7891fe2723f960782c81c0cbb04e8f0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoCreate a second user in cloudify_vrouter 11/52411/1
Cédric Ollivier [Tue, 20 Feb 2018 10:51:42 +0000 (11:51 +0100)]
Create a second user in cloudify_vrouter

It mainly bypasses a bug when a similar network name has already been
created.

We can't apply the same operations for cloudify_vims because the key
must be created by the _member_ user.
Snaps haven't allowed that since [1] has been merged

[1] https://gerrit.opnfv.org/gerrit/#/c/52157/

Change-Id: I90131487d0e08a4d95c684efb16a8009c3709a8e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Remove deprecated monkey patches"
Cedric Ollivier [Tue, 20 Feb 2018 10:17:24 +0000 (10:17 +0000)]
Merge "Remove deprecated monkey patches"

6 years agoMerge "Remove last CONST.__getattribute__()"
Cedric Ollivier [Tue, 20 Feb 2018 10:17:18 +0000 (10:17 +0000)]
Merge "Remove last CONST.__getattribute__()"

6 years agoMerge "Generate tempest verification report (HTML)"
Cedric Ollivier [Mon, 19 Feb 2018 20:17:35 +0000 (20:17 +0000)]
Merge "Generate tempest verification report (HTML)"

6 years agoRemove deprecated monkey patches 29/52329/1
Cédric Ollivier [Mon, 19 Feb 2018 20:14:06 +0000 (21:14 +0100)]
Remove deprecated monkey patches

OpenStack utils are being removed.

Change-Id: I2a41297034654f678afa5a7a818961a4cd0cee73
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemove last CONST.__getattribute__() 27/52327/1
Cédric Ollivier [Mon, 19 Feb 2018 19:49:00 +0000 (20:49 +0100)]
Remove last CONST.__getattribute__()

Change-Id: I82f6aa1e723c88eebd4c7410da4b9741a482e9bc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoManage region in cloudify_ims.py 23/52323/1
Cédric Ollivier [Mon, 19 Feb 2018 18:41:27 +0000 (19:41 +0100)]
Manage region in cloudify_ims.py

It must be completed by a new change in opnfv-cloudify-clearwater [1].

[1] https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater/pull/18

Change-Id: Ic3a323e33b9742835159f5386e9247c6ac965f51
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix credentials in cloudify_vrouter 21/52321/1
Cédric Ollivier [Mon, 19 Feb 2018 18:31:36 +0000 (19:31 +0100)]
Fix credentials in cloudify_vrouter

It completes [1] which partially fixes cloudify_vrouter [2].
It now handles region name too and formats long arg lists too.

[1] https://gerrit.opnfv.org/gerrit/#/c/52175/
[2] https://gerrit.opnfv.org/gerrit/#/c/50747/

Change-Id: I592d12d7df6837531560acfc4afc0636f485c671
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoGenerate tempest verification report (HTML) 11/52311/1
Juha Kosonen [Mon, 19 Feb 2018 15:47:08 +0000 (17:47 +0200)]
Generate tempest verification report (HTML)

JIRA: FUNCTEST-934

Change-Id: I2befbd3f2b2311f69b24321c7e9544fb43df3a9d
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoDisable orchestra_clearwaterims in functest-vnf 97/52297/1
Cédric Ollivier [Mon, 19 Feb 2018 12:44:32 +0000 (13:44 +0100)]
Disable orchestra_clearwaterims in functest-vnf

It fixes a typo.

Change-Id: I684eab0ed74e2ebcb6f72442d0b3012d1b5de7aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoPrecise Tempest tests list 89/52289/3
Cédric Ollivier [Mon, 19 Feb 2018 07:23:14 +0000 (08:23 +0100)]
Precise Tempest tests list

Else full mode could run tests defined in tempest plugins too [1].

[1] https://docs.openstack.org/tempest/latest/plugin-registry.html

Change-Id: I4355b03ba1b9ba47938f748c4f1a8822fd412142
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoEnhance variable manipulation in tempest 87/52287/1
Juha Kosonen [Mon, 19 Feb 2018 09:18:11 +0000 (11:18 +0200)]
Enhance variable manipulation in tempest

Use getattr/setattr to read/write CONST.

JIRA: FUNCTEST-932

Change-Id: Ic9a944100c60563b16f5d89b622ef7f04183cceb
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
6 years agoRemove one debug print 41/52241/2
Cédric Ollivier [Fri, 16 Feb 2018 15:16:02 +0000 (16:16 +0100)]
Remove one debug print

Change-Id: I531d1e519fc0352525993c69142eea14b99a3f63
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMock additional methods related to OpenStackFlavor 53/52253/1
Cédric Ollivier [Fri, 16 Feb 2018 18:07:13 +0000 (19:07 +0100)]
Mock additional methods related to OpenStackFlavor

keystone_utils.keystone_client() and keystone_utils.get_project()
have to be mocked when unit testing flavor creation since [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/52157/

Change-Id: I898cde1001c14d0b450c3dd43ade7dca47b1ffb3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoAdd suffixes in vnf keypair names 33/52233/2
Cédric Ollivier [Fri, 16 Feb 2018 13:19:48 +0000 (14:19 +0100)]
Add suffixes in vnf keypair names

Change-Id: Ia9c8ef535b16326a520367d2c7c98b7e8db4822c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoGet properly env vars or their default values 21/52221/4
Cédric Ollivier [Wed, 14 Feb 2018 15:02:53 +0000 (16:02 +0100)]
Get properly env vars or their default values

It defines env.get() as an unique way to get Functest env vars or
their default values. It can be considered as a wrapper above os.environ.

It enforces backward compatibility via CONST which mustn't be used
for that purpose. It should be noted that it also stops using CONST
for getting OpenStack env vars.

Change-Id: I333dc1afbc0123166a7eaff8b551370098efa341
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Removed os_utils and fully switched to snaps"
Cedric Ollivier [Thu, 15 Feb 2018 18:30:13 +0000 (18:30 +0000)]
Merge "Removed os_utils and fully switched to snaps"

6 years agoAdd suffixes to OpenStack resource names 75/52175/2
Cédric Ollivier [Wed, 14 Feb 2018 22:08:29 +0000 (23:08 +0100)]
Add suffixes to OpenStack resource names

All vnf testcases have to add suffixes in OpenStack resources names
simply because the password is now generated before any run [1].

Snaps mainly creates the resource only if unfound in all tenants [2].
Then one remaining resource could easily raise permissions denied.
It avoid conflicts between vrouter and cloudify_ims which are using the
same names.

[1] https://gerrit.opnfv.org/gerrit/#/c/50747/
[2] https://jira.opnfv.org/browse/SNAPS-257

Depends-On: If56cc44fe35ca06bc9033af620ddd3c0586877fe
Change-Id: I1800886e575189b64fdc580a5ee6b59c81fcde5c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoFix typos in cloudify_ims 47/52147/3
Cédric Ollivier [Wed, 14 Feb 2018 13:14:48 +0000 (14:14 +0100)]
Fix typos in cloudify_ims

Change-Id: I5d29b3e58cae7e9a334ec6f264cdb5e280860d97
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoStop reading SDN_CONTROLLER env var. 25/52125/3
Cédric Ollivier [Tue, 13 Feb 2018 19:45:30 +0000 (20:45 +0100)]
Stop reading SDN_CONTROLLER env var.

Joid doesn't support ODL and this exception is no longer needed.
It will be a simple switch from SDN_CONTROLLER to SDN_CONTROLLER_IP
if Joid supports ODL again.

Change-Id: I925965f9c1adf24914e4110ff3206443f4063ac8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoRemoved os_utils and fully switched to snaps 45/52145/3
soumaya [Wed, 14 Feb 2018 11:59:23 +0000 (17:29 +0530)]
Removed os_utils and fully switched to snaps

JIRA: FUNCTEST-925

Change-Id: Ibcbf42c34b764fda09d4d49513b261aae296a68b
Signed-off-by: soumaya <soumaya.nayek@rebaca.com>
6 years agoMerge "Stop reading NODE_NAME in tempest and refstack"
Juha Kosonen [Thu, 15 Feb 2018 14:45:33 +0000 (14:45 +0000)]
Merge "Stop reading NODE_NAME in tempest and refstack"

6 years agoStop reading NODE_NAME in tempest and refstack 23/52123/2
Cédric Ollivier [Tue, 13 Feb 2018 18:13:28 +0000 (19:13 +0100)]
Stop reading NODE_NAME in tempest and refstack

NODE_NAME should only be read by TestCase when publishing the results
to the database. Other debug data are already printed by run_tests.

INSTALLER_TYPE and DEPLOY_SCENARIO are also unused by refstack.

Change-Id: Ib82d5c1512553beba2c56f4ec2860cb2593f801e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Enable doctor-notification"
Cedric Ollivier [Wed, 14 Feb 2018 09:03:34 +0000 (09:03 +0000)]
Merge "Enable doctor-notification"

6 years agoEnable doctor-notification 41/52141/2
Cédric Ollivier [Wed, 14 Feb 2018 07:42:41 +0000 (08:42 +0100)]
Enable doctor-notification

The testcase has been expected to work since the nova bug [1] was
bypassed [2].

[1] https://bugs.launchpad.net/nova/+bug/1742827
[2] https://gerrit.opnfv.org/gerrit/#/c/52075/

Change-Id: If53da6313381cf69a0093a6677db3d9033fb8f48
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
6 years agoMerge "Only filter boot_server_from_volume_and_delete via scenario"
Juha Kosonen [Wed, 14 Feb 2018 07:48:22 +0000 (07:48 +0000)]
Merge "Only filter boot_server_from_volume_and_delete via scenario"