
Add the ability to configure the cluster name, and the backend URL used for coordination locks. Change-Id: I431c0f7bfa766356b7ec04bf2c4d5f830c1780a2
36 lines
820 B
Ruby
36 lines
820 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::coordination' do
|
|
shared_examples 'cinder::coordination' do
|
|
context 'with default parameters' do
|
|
it {
|
|
should contain_cinder_config('coordination/backend_url').with_value('<SERVICE DEFAULT>')
|
|
}
|
|
end
|
|
|
|
context 'with specified parameters' do
|
|
let :params do
|
|
{
|
|
:backend_url => 'etcd3+http://127.0.0.1:2379',
|
|
}
|
|
end
|
|
|
|
it {
|
|
should contain_cinder_config('coordination/backend_url').with_value('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 'cinder::coordination'
|
|
end
|
|
end
|
|
end
|