Add options to configure tempest for ironic

Change-Id: I47e886f67e51edf8f4cee3ded44496287d2298d4
This commit is contained in:
yatin 2018-06-13 17:10:41 +05:30
parent 387ff71ab7
commit fae4bdd453
3 changed files with 15 additions and 0 deletions

View File

@ -209,6 +209,10 @@
# [*db_flavor_ref*]
# Valid primary flavor to use in Trove tests.
# Defaults to $::os_service_default
# [*baremetal_driver*]
# Defaults to 'fake'
# [*baremetal_enabled_hardware_types*]
# Defaults to 'ipmi'
#
# DEPREACTED PARAMETERS
# [*tenant_name*]
@ -350,6 +354,9 @@ class tempest(
$img_file = 'cirros-0.4.0-x86_64-disk.img',
# designate options
$designate_nameservers = undef,
# ironic options
$baremetal_driver = 'fake',
$baremetal_enabled_hardware_types = 'ipmi',
# DEPRECATED PARAMETERS
$tenant_name = undef,
$alt_tenant_name = undef,
@ -563,6 +570,8 @@ class tempest(
'dns/nameservers': value => $designate_nameservers;
'compute-feature-enabled/attach_encrypted_volume': value => $attach_encrypted_volume;
'compute-feature-enabled/resize': value => $resize_available;
'baremetal/driver': value => $baremetal_driver;
'baremetal/enabled_hardware_types': value => $baremetal_enabled_hardware_types;
}
oslo::concurrency { 'tempest_config': lock_path => $lock_path }

View File

@ -0,0 +1,4 @@
---
features:
- |
Add some options to configure tempest for ironic.

View File

@ -215,6 +215,8 @@ describe 'tempest' do
is_expected.to contain_tempest_config('compute/build_interval').with(:value => nil)
is_expected.to contain_tempest_config('compute-feature-enabled/attach_encrypted_volume').with(:value => false)
is_expected.to contain_tempest_config('compute-feature-enabled/resize').with(:value => false)
is_expected.to contain_tempest_config('baremetal/driver').with(:value => 'fake')
is_expected.to contain_tempest_config('baremetal/enabled_hardware_types').with(:value => 'ipmi')
is_expected.to contain_tempest_config('validation/image_ssh_user').with(:value => nil)
is_expected.to contain_tempest_config('validation/run_validation').with(:value => false)
is_expected.to contain_tempest_config('identity/admin_role').with(:value => nil)