Add parameter to configure enabled Sahara plugins

Tempest can be configured to check for the presence of certain
Sahara plugins (vanilla, cdh, etc.) via the
data-processing-feature-enabled/plugins variable in tempest.conf.
If the cloud has been set up with a non-default set of plugins in
sahara.conf, it is necessary to change this value, or the Tempest
run will fail.

Adding a new parameter $sahara_plugins to configure this.

Change-Id: I1f7626253728bcaf95773ef060d7a1264ae7e86f
This commit is contained in:
Javier Pena 2016-03-08 19:03:56 +01:00
parent 2dcec32ad8
commit f2285037af
2 changed files with 23 additions and 0 deletions

View File

@ -97,6 +97,9 @@
# Defaults to undef
# [*public_router_id*]
# Defaults to ''
# [*sahara_plugins*]
# (optional) List of enabled Sahara plugins
# Defaults to undef
# [*cinder_available*]
# Defaults to true
# [*glance_available*]
@ -221,6 +224,8 @@ class tempest(
$public_network_id = undef,
# Upstream has a bad defaul t - set it to empty string.
$public_router_id = '',
# Sahara config
$sahara_plugins = undef,
# Service configuration
$cinder_available = true,
$glance_available = true,
@ -415,4 +420,10 @@ be provided.')
}
}
if $sahara_available {
tempest_config {
'data-processing-feature-enabled/plugins': value => $sahara_plugins,
}
}
}

View File

@ -103,6 +103,18 @@ describe 'tempest' do
end
end
context 'with sahara_plugins' do
let :params do
{ :configure_images => false,
:sahara_available => true,
:sahara_plugins => ['vanilla'] }
end
it 'properly configures Sahara plugins in tempest.conf' do
is_expected.to contain_tempest_config('data-processing-feature-enabled/plugins').with_value(['vanilla'])
end
end
context 'with parameters' do
let :params do
{ :configure_images => true,