
The ironic-inspector service can be deployed using separate api service and conductor service. This introduces the initial support for that deployment pattern. Note that the non-standalone mode is supported in only RHEL and CentOS. We may add Debian support later. Change-Id: Ic53d454841252cfb6802cd7856faaab2435b984b
40 lines
937 B
Ruby
40 lines
937 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'ironic::inspector::coordination' do
|
|
shared_examples 'ironic::inspector::coordination' do
|
|
context 'with default parameters' do
|
|
it {
|
|
is_expected.to contain_oslo__coordination('ironic_inspector_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('ironic_inspector_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 'ironic::inspector::coordination'
|
|
end
|
|
end
|
|
end
|