puppet-mistral/spec/classes/mistral_coordination_spec.rb
Takashi Kajinami c7fa10285d Deprecate support for [coordination] heartbeat_interval
This option hasn't been unused by Mistral and was formally deprecated
during this cycle.

Depends-on: https://review.opendev.org/877936
Change-Id: If6aa337cdd0f932b0cf0aaee14aa04bd36701076
2024-04-05 09:46:10 +09:00

40 lines
889 B
Ruby

require 'spec_helper'
describe 'mistral::coordination' do
shared_examples 'mistral::coordination' do
context 'with default parameters' do
it {
is_expected.to contain_oslo__coordination('mistral_config').with(
:backend_url => '<SERVICE DEFAULT>'
)
}
end
context 'with specified parameters' do
let :params do
{
:backend_url => 'etcd3+http://127.0.0.1:2379',
}
end
it {
is_expected.to contain_oslo__coordination('mistral_config').with(
:backend_url => 'etcd3+http://127.0.0.1:2379'
)
}
end
end
on_supported_os({
:supported_os => OSDefaults.get_supported_os
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge(OSDefaults.get_facts())
end
it_behaves_like 'mistral::coordination'
end
end
end