
The tooz library was introduced to Manila a while ago[1]. This change adds the new manila::coordination class to manage coordination parameters and backend packages. [1] 326755f42ccf0385a02db37e734251860d81b00d Depends-on: https://review.opendev.org/791628 Change-Id: I1a4c342a1d7876762af51d2c8bef87881719e598
40 lines
884 B
Ruby
40 lines
884 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'manila::coordination' do
|
|
shared_examples 'manila::coordination' do
|
|
context 'with default parameters' do
|
|
it {
|
|
is_expected.to contain_oslo__coordination('manila_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('manila_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 'manila::coordination'
|
|
end
|
|
end
|
|
end
|