Add L2GW Tempest plugin support

Change-Id: I3e6b62422340356ce3d320c71b5b8975a22e9f21
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
This commit is contained in:
Ricardo Noriega 2017-04-25 16:18:45 +02:00
parent b0af6a6b86
commit a13bad76bf
4 changed files with 18 additions and 0 deletions

View File

@ -139,6 +139,8 @@
# Defaults to true
# [*neutron_lbaas_available*]
# Defaults to true
# [*neutron_l2gw_available*]
# Defaults to true
# [*neutron_vpnaas_available*]
# Defaults to false
# [*nova_available*]
@ -315,6 +317,7 @@ class tempest(
$neutron_bgpvpn_available = false,
$neutron_fwaas_available = true,
$neutron_lbaas_available = true,
$neutron_l2gw_available = false,
$neutron_vpnaas_available = false,
$nova_available = true,
$murano_available = false,
@ -538,6 +541,7 @@ the future release. Please use tempest::package_ensure instead.")
'service_available/panko': value => $panko_available;
'service_available/designate': value => $designate_available;
'service_available/horizon': value => $horizon_available;
'service_available/l2gw': value => $neutron_l2gw_available;
'service_available/neutron': value => $neutron_available;
'service_available/mistral': value => $mistral_available;
'service_available/vitrage': value => $vitrage_available;
@ -669,6 +673,13 @@ the future release. Please use tempest::package_ensure instead.")
tag => ['openstack', 'tempest-package'],
}
}
if $neutron_l2gw_available and $::tempest::params::python_l2gw_tests {
package { 'python-networking-l2gw-tests':
ensure => present,
name => $::tempest::params::python_l2gw_tests,
tag => ['openstack', 'tempest-package'],
}
}
if $neutron_vpnaas_available {
package { 'python-neutron-vpnaas-tests':
ensure => present,

View File

@ -29,6 +29,7 @@ class tempest::params {
$python_neutron_tests = 'python-neutron-tests'
$python_fwaas_tests = 'python-neutron-fwaas-tests'
$python_lbaas_tests = 'python-neutron-lbaas-tests'
$python_l2gw_tests = 'python-networking-l2gw-tests'
$python_vpnaas_tests = 'python-neutron-vpnaas-tests'
$python_nova_tests = 'python-nova-tests'
$python_sahara_tests = 'python-sahara-tests-tempest'
@ -64,6 +65,7 @@ class tempest::params {
$python_horizon_tests = false
$python_ironic_tests = false
$python_keystone_tests = false
$python_l2gw_tests = false
$python_mistral_tests = false
$python_vitrage_tests = false
$python_murano_tests = false

View File

@ -0,0 +1,3 @@
---
features:
- Add L2GW Tempest plugin support

View File

@ -252,6 +252,7 @@ describe 'tempest' do
is_expected.to contain_tempest_config('service_available/gnocchi').with(:value => false)
is_expected.to contain_tempest_config('service_available/panko').with(:value => false)
is_expected.to contain_tempest_config('service_available/horizon').with(:value => true)
is_expected.to contain_tempest_config('service_available/l2gw').with(:value => false)
is_expected.to contain_tempest_config('service_available/neutron').with(:value => true)
is_expected.to contain_tempest_config('service_available/mistral').with(:value => false)
is_expected.to contain_tempest_config('service_available/vitrage').with(:value => false)
@ -403,6 +404,7 @@ describe 'tempest' do
it { expect { is_expected.to contain_package('python-neutron-lbaas-tests') } }
it { expect { is_expected.to contain_package('python-neutron-vpnaas-tests') } }
it { expect { is_expected.to contain_package('python-networking-bgpvpn-tests') } }
it { expect { is_expected.to contain_package('python-networking-l2gw-tests') } }
it { expect { is_expected.to contain_package('python-horizon-tests-tempest') } }
end
end