Merge "Remove deprecated mistral::engine parameters"

This commit is contained in:
Zuul 2022-08-01 08:32:54 +00:00 committed by Gerrit Code Review
commit a29027b27f
3 changed files with 8 additions and 41 deletions

View File

@ -52,22 +52,6 @@
# (Optional) Enables starting subworkflows via RPC.
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*evaluation_interval*]
# (Optional) How often will the executions be evaluated
# (in minutes). For example for value 120 the interval
# will be 2 hours (every 2 hours).
# Defaults to undef.
#
# [*older_than*]
# (Optional) Evaluate from which time remove executions in minutes.
# For example when older_than = 60, remove all executions
# that finished a 60 minutes ago or more.
# Minimum value is 1.
# Note that only final state execution will remove (SUCCESS/ERROR).
# Defaults to undef.
#
class mistral::engine (
$package_ensure = present,
$manage_service = true,
@ -80,24 +64,11 @@ class mistral::engine (
$execution_integrity_check_batch_size = $::os_service_default,
$action_definition_cache_time = $::os_service_default,
$start_subworkflows_via_rpc = $::os_service_default,
# DEPRECATED PARAMETERS
$evaluation_interval = undef,
$older_than = undef,
) {
include mistral::deps
include mistral::params
if $evaluation_interval != undef {
warning('The mistral::engine::evaluation_interval parameter is deprecated. \
Use the mistral::execution_expiration_policy class instead.')
}
if $older_than != undef {
warning('The mistral::engine::older_than parameter is deprecated. \
Use the mistral::execution_expiration_policy class instead.')
}
include mistral::execution_expiration_policy
package { 'mistral-engine':
ensure => $package_ensure,
name => $::mistral::params::engine_package_name,

View File

@ -0,0 +1,8 @@
---
upgrade:
- |
The following parameters of the ``mistral::engine`` class have been
removed.
- ``evaluation_interval``
- ``older_than``

View File

@ -26,11 +26,6 @@ describe 'mistral::engine' do
.with_value('<SERVICE DEFAULT>')
is_expected.to contain_mistral_config('engine/start_subworkflows_via_rpc')
.with_value('<SERVICE DEFAULT>')
is_expected.to contain_mistral_config('execution_expiration_policy/evaluation_interval')\
.with_value('<SERVICE DEFAULT>')
is_expected.to contain_mistral_config('execution_expiration_policy/older_than')\
.with_value('<SERVICE DEFAULT>')
end
end
@ -45,8 +40,6 @@ describe 'mistral::engine' do
:execution_integrity_check_batch_size => 5,
:action_definition_cache_time => 60,
:start_subworkflows_via_rpc => false,
:evaluation_interval => 1234,
:older_than => 60
})
end
@ -67,11 +60,6 @@ describe 'mistral::engine' do
.with_value(params[:action_definition_cache_time])
is_expected.to contain_mistral_config('engine/start_subworkflows_via_rpc')
.with_value(params[:start_subworkflows_via_rpc])
is_expected.to contain_mistral_config('execution_expiration_policy/evaluation_interval')\
.with_value(params[:evaluation_interval])
is_expected.to contain_mistral_config('execution_expiration_policy/older_than')\
.with_value(params[:older_than])
end
end