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:
parent
2dcec32ad8
commit
f2285037af
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user