Drop deprecated tempest class parameters
This removes the parameters which were deprecated during the past cycles[1][2]. [1]dbef30e09b
[2]ac0520fc45
Change-Id: I346882b36efd4ed3cd4c2608953ded68b9ed25a4
This commit is contained in:
@@ -313,12 +313,6 @@
|
|||||||
# DEPREACTED PARAMETERS
|
# DEPREACTED PARAMETERS
|
||||||
# [*glance_v2*]
|
# [*glance_v2*]
|
||||||
# Defaults to true
|
# Defaults to true
|
||||||
# [*tempest_config_file*]
|
|
||||||
# Defaults to undef
|
|
||||||
# [*cli_dir*]
|
|
||||||
# Defaults to undef
|
|
||||||
# [*login_url*]
|
|
||||||
# Defaults to undef
|
|
||||||
#
|
#
|
||||||
class tempest(
|
class tempest(
|
||||||
$package_ensure = 'present',
|
$package_ensure = 'present',
|
||||||
@@ -507,19 +501,13 @@ class tempest(
|
|||||||
$alarm_backend = $facts['os_service_default'],
|
$alarm_backend = $facts['os_service_default'],
|
||||||
# DEPRECATED PARAMETERS
|
# DEPRECATED PARAMETERS
|
||||||
$glance_v2 = undef,
|
$glance_v2 = undef,
|
||||||
$tempest_config_file = undef,
|
|
||||||
$cli_dir = undef,
|
|
||||||
$login_url = undef,
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
[ 'glance_v2', 'cli_dir', 'login_url' ].each |String $deprecated_opt| {
|
[ 'glance_v2' ].each |String $deprecated_opt| {
|
||||||
if getvar($deprecated_opt) != undef {
|
if getvar($deprecated_opt) != undef {
|
||||||
warning("The ${deprecated_opt} parameter has been deprecated and will be removed in a future release")
|
warning("The ${deprecated_opt} parameter has been deprecated and will be removed in a future release")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if $tempest_config_file != undef {
|
|
||||||
warning('The tempest_config_file parameter has been deprecated and has no effect')
|
|
||||||
}
|
|
||||||
|
|
||||||
[ 'neutron_bgpvpn_available', 'neutron_vpnaas_available', 'neutron_dr_available' ].each |$opt| {
|
[ 'neutron_bgpvpn_available', 'neutron_vpnaas_available', 'neutron_dr_available' ].each |$opt| {
|
||||||
if getvar($opt) != undef {
|
if getvar($opt) != undef {
|
||||||
@@ -665,7 +653,6 @@ class tempest(
|
|||||||
'network-feature-enabled/api_extensions': value => join(any2array($neutron_api_extensions), ',');
|
'network-feature-enabled/api_extensions': value => join(any2array($neutron_api_extensions), ',');
|
||||||
'network/public_network_id': value => $public_network_id;
|
'network/public_network_id': value => $public_network_id;
|
||||||
'network/public_router_id': value => $public_router_id;
|
'network/public_router_id': value => $public_router_id;
|
||||||
'dashboard/login_url': value => pick($login_url, $facts['os_service_default']);
|
|
||||||
'dashboard/dashboard_url': value => $dashboard_url;
|
'dashboard/dashboard_url': value => $dashboard_url;
|
||||||
'dashboard/disable_ssl_certificate_validation': value => $disable_dashboard_ssl_validation;
|
'dashboard/disable_ssl_certificate_validation': value => $disable_dashboard_ssl_validation;
|
||||||
'database/db_flavor_ref': value => $db_flavor_ref;
|
'database/db_flavor_ref': value => $db_flavor_ref;
|
||||||
@@ -717,7 +704,6 @@ class tempest(
|
|||||||
'baremetal/max_microversion': value => $baremetal_max_microversion;
|
'baremetal/max_microversion': value => $baremetal_max_microversion;
|
||||||
'share/min_api_microversion': value => $share_min_microversion;
|
'share/min_api_microversion': value => $share_min_microversion;
|
||||||
'share/max_api_microversion': value => $share_max_microversion;
|
'share/max_api_microversion': value => $share_max_microversion;
|
||||||
'cli/cli_dir': value => pick($cli_dir, $facts['os_service_default']);
|
|
||||||
'scenario/img_file': value => $img_file;
|
'scenario/img_file': value => $img_file;
|
||||||
'scenario/img_disk_format': value => $img_disk_format;
|
'scenario/img_disk_format': value => $img_disk_format;
|
||||||
'service_broker/run_service_broker_tests': value => $run_service_broker_tests;
|
'service_broker/run_service_broker_tests': value => $run_service_broker_tests;
|
||||||
|
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The following ``tempest`` class parameters have been removed.
|
||||||
|
|
||||||
|
- ``tempest_config_file``
|
||||||
|
- ``cli_dir``
|
||||||
|
- ``login_url``
|
@@ -256,7 +256,6 @@ describe 'tempest' do
|
|||||||
is_expected.to contain_tempest_config('network-feature-enabled/api_extensions').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('network-feature-enabled/api_extensions').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('network/public_network_id').with(:value => nil)
|
is_expected.to contain_tempest_config('network/public_network_id').with(:value => nil)
|
||||||
is_expected.to contain_tempest_config('network/public_router_id').with(:value => nil)
|
is_expected.to contain_tempest_config('network/public_router_id').with(:value => nil)
|
||||||
is_expected.to contain_tempest_config('dashboard/login_url').with(:value => '<SERVICE DEFAULT>')
|
|
||||||
is_expected.to contain_tempest_config('dashboard/dashboard_url').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('dashboard/dashboard_url').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('dashboard/disable_ssl_certificate_validation').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('dashboard/disable_ssl_certificate_validation').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('database/db_flavor_ref').with(:value => nil)
|
is_expected.to contain_tempest_config('database/db_flavor_ref').with(:value => nil)
|
||||||
@@ -337,7 +336,6 @@ describe 'tempest' do
|
|||||||
is_expected.to contain_tempest_config('telemetry_services/metric_backends').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('telemetry_services/metric_backends').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('telemetry_services/alarm_backend').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('telemetry_services/alarm_backend').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('share/capability_storage_protocol').with(:value => '<SERVICE DEFAULT>')
|
is_expected.to contain_tempest_config('share/capability_storage_protocol').with(:value => '<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_tempest_config('cli/cli_dir').with(:value => '<SERVICE DEFAULT>')
|
|
||||||
is_expected.to contain_oslo__concurrency('tempest_config').with(
|
is_expected.to contain_oslo__concurrency('tempest_config').with(
|
||||||
:lock_path => '/var/lib/tempest'
|
:lock_path => '/var/lib/tempest'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user