Add support for Gnocchi tests

Allow to install and run Tempest tests for Gnocchi.

Change-Id: I4d7c81e9bb43a5db4665d7c5712f697ed67f4c05
This commit is contained in:
Emilien Macchi 2016-04-20 12:44:45 -04:00
parent 7af94e013b
commit b21e1b7299
4 changed files with 17 additions and 0 deletions

View File

@ -108,6 +108,8 @@
# Defaults to false # Defaults to false
# [*aodh_available*] # [*aodh_available*]
# Defaults to false # Defaults to false
# [*gnocchi_available*]
# Defaults to false
# [*horizon_available*] # [*horizon_available*]
# Defaults to true # Defaults to true
# [*neutron_available*] # [*neutron_available*]
@ -236,6 +238,7 @@ class tempest(
$heat_available = false, $heat_available = false,
$ceilometer_available = false, $ceilometer_available = false,
$aodh_available = false, $aodh_available = false,
$gnocchi_available = false,
$horizon_available = true, $horizon_available = true,
$neutron_available = false, $neutron_available = false,
$nova_available = true, $nova_available = true,
@ -365,6 +368,7 @@ class tempest(
'service_available/heat': value => $heat_available; 'service_available/heat': value => $heat_available;
'service_available/ceilometer': value => $ceilometer_available; 'service_available/ceilometer': value => $ceilometer_available;
'service_available/aodh': value => $aodh_available; 'service_available/aodh': value => $aodh_available;
'service_available/gnocchi': value => $gnocchi_available;
'service_available/horizon': value => $horizon_available; 'service_available/horizon': value => $horizon_available;
'service_available/neutron': value => $neutron_available; 'service_available/neutron': value => $neutron_available;
'service_available/nova': value => $nova_available; 'service_available/nova': value => $nova_available;
@ -416,6 +420,13 @@ class tempest(
tag => ['openstack', 'tempest-package'], tag => ['openstack', 'tempest-package'],
} }
} }
if $gnocchi_available and $::tempest::params::python_gnocchi_tests {
package { 'python-gnocchi-tests':
ensure => present,
name => $::tempest::params::python_gnocchi_tests,
tag => ['openstack', 'tempest-package'],
}
}
if $heat_available and $::tempest::params::python_heat_tests { if $heat_available and $::tempest::params::python_heat_tests {
package { 'python-heat-tests': package { 'python-heat-tests':
ensure => present, ensure => present,

View File

@ -16,6 +16,7 @@ class tempest::params {
$python_ceilometer_tests = 'python-ceilometer-tests' $python_ceilometer_tests = 'python-ceilometer-tests'
$python_cinder_tests = 'python-cinder-tests' $python_cinder_tests = 'python-cinder-tests'
$python_glance_tests = 'python-glance-tests' $python_glance_tests = 'python-glance-tests'
$python_gnocchi_tests = 'python-gnocchi-tests'
$python_heat_tests = 'python-heat-tests' $python_heat_tests = 'python-heat-tests'
$python_ironic_tests = 'python-ironic-tests' $python_ironic_tests = 'python-ironic-tests'
$python_keystone_tests = 'python-keystone-tests' $python_keystone_tests = 'python-keystone-tests'
@ -47,6 +48,7 @@ class tempest::params {
$python_ceilometer_tests = false $python_ceilometer_tests = false
$python_cinder_tests = false $python_cinder_tests = false
$python_glance_tests = false $python_glance_tests = false
$python_gnocchi_tests = false
$python_heat_tests = false $python_heat_tests = false
$python_ironic_tests = false $python_ironic_tests = false
$python_keystone_tests = false $python_keystone_tests = false

View File

@ -0,0 +1,3 @@
---
features:
- Add support for Gnocchi tests.

View File

@ -207,6 +207,7 @@ describe 'tempest' do
is_expected.to contain_tempest_config('service_available/heat').with(:value => false) is_expected.to contain_tempest_config('service_available/heat').with(:value => false)
is_expected.to contain_tempest_config('service_available/ceilometer').with(:value => false) is_expected.to contain_tempest_config('service_available/ceilometer').with(:value => false)
is_expected.to contain_tempest_config('service_available/aodh').with(:value => false) is_expected.to contain_tempest_config('service_available/aodh').with(:value => false)
is_expected.to contain_tempest_config('service_available/gnocchi').with(:value => false)
is_expected.to contain_tempest_config('service_available/horizon').with(:value => true) is_expected.to contain_tempest_config('service_available/horizon').with(:value => true)
is_expected.to contain_tempest_config('service_available/neutron').with(:value => true) is_expected.to contain_tempest_config('service_available/neutron').with(:value => true)
is_expected.to contain_tempest_config('service_available/nova').with(:value => true) is_expected.to contain_tempest_config('service_available/nova').with(:value => true)