Do not hard-code default stores

... as is described in the parameter descriptions.

Change-Id: Iabdf90bf6cf4cede7fe705032d5a65dabc69b8e2
This commit is contained in:
Takashi Kajinami 2023-11-14 21:47:48 +09:00
parent 2d8f3e3ef0
commit 1954331d54
4 changed files with 6 additions and 2 deletions

View File

@ -87,8 +87,8 @@ class zaqar(
$subscription_pipeline = $facts['os_service_default'],
$topic_pipeline = $facts['os_service_default'],
$max_messages_post_size = $facts['os_service_default'],
$message_store = 'mongodb',
$management_store = 'mongodb',
$message_store = $facts['os_service_default'],
$management_store = $facts['os_service_default'],
$package_name = $::zaqar::params::package_name,
$package_ensure = 'present',
Boolean $purge_config = false,

View File

@ -39,6 +39,8 @@ describe 'zaqar' do
is_expected.to contain_zaqar_config('storage/claim_pipeline').with_value('<SERVICE DEFAULT>')
is_expected.to contain_zaqar_config('storage/subscription_pipeline').with_value('<SERVICE DEFAULT>')
is_expected.to contain_zaqar_config('storage/topic_pipeline').with_value('<SERVICE DEFAULT>')
is_expected.to contain_zaqar_config('drivers/message_store').with_value('<SERVICE DEFAULT>')
is_expected.to contain_zaqar_config('drivers/management_store').with_value('<SERVICE DEFAULT>')
end
end

View File

@ -8,6 +8,7 @@ describe 'zaqar::management::mongodb' do
password =>'foo',
}
class { 'zaqar':
management_store => 'mongodb',
}"
end

View File

@ -8,6 +8,7 @@ describe 'zaqar::messaging::mongodb' do
password =>'foo',
}
class { 'zaqar':
message_store => 'mongodb'
}"
end