Merge "Use oslo::coordination to manage coordination parameters"
This commit is contained in:
commit
d9ccac4f21
@ -14,7 +14,7 @@ class cinder::coordination (
|
|||||||
|
|
||||||
include cinder::deps
|
include cinder::deps
|
||||||
|
|
||||||
cinder_config {
|
oslo::coordination{ 'cinder_config':
|
||||||
'coordination/backend_url': value => $backend_url;
|
backend_url => $backend_url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,9 @@ describe 'cinder::coordination' do
|
|||||||
shared_examples 'cinder::coordination' do
|
shared_examples 'cinder::coordination' do
|
||||||
context 'with default parameters' do
|
context 'with default parameters' do
|
||||||
it {
|
it {
|
||||||
is_expected.to contain_cinder_config('coordination/backend_url').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_oslo__coordination('cinder_config').with(
|
||||||
|
:backend_url => '<SERVICE DEFAULT>'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -16,7 +18,9 @@ describe 'cinder::coordination' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it {
|
it {
|
||||||
is_expected.to contain_cinder_config('coordination/backend_url').with_value('etcd3+http://127.0.0.1:2379')
|
is_expected.to contain_oslo__coordination('cinder_config').with(
|
||||||
|
:backend_url => 'etcd3+http://127.0.0.1:2379'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user