| 1 |
require 'spec_helper' |
| 2 |
|
| 3 |
describe 'nova::key_manager' do |
| 4 |
shared_examples 'nova::key_manager' do |
| 5 |
context 'with default parameters' do |
| 6 |
it { |
| 7 |
is_expected.to contain_oslo__key_manager('nova_config').with( |
| 8 |
:backend => 'nova.keymgr.conf_key_mgr.ConfKeyManager' |
| 9 |
) |
| 10 |
} |
| 11 |
end |
| 12 |
|
| 13 |
context 'with specified parameters' do |
| 14 |
let :params do |
| 15 |
{ |
| 16 |
:backend => 'barbican' |
| 17 |
} |
| 18 |
end |
| 19 |
|
| 20 |
it { |
| 21 |
is_expected.to contain_oslo__key_manager('nova_config').with( |
| 22 |
:backend => 'barbican' |
| 23 |
) |
| 24 |
} |
| 25 |
end |
| 26 |
end |
| 27 |
|
| 28 |
on_supported_os({ |
| 29 |
:supported_os => OSDefaults.get_supported_os |
| 30 |
}).each do |os,facts| |
| 31 |
context "on #{os}" do |
| 32 |
let (:facts) do |
| 33 |
facts.merge(OSDefaults.get_facts()) |
| 34 |
end |
| 35 |
|
| 36 |
it_behaves_like 'nova::key_manager' |
| 37 |
end |
| 38 |
end |
| 39 |
end |