| 1 |
require 'spec_helper' |
| 2 |
|
| 3 |
describe 'nova::cell_v2::simple_setup' do |
| 4 |
|
| 5 |
shared_examples_for 'nova::cell_v2::simple_setup' do |
| 6 |
context 'with defaults' do |
| 7 |
|
| 8 |
it { |
| 9 |
is_expected.to contain_class('nova::cell_v2::map_cell0') |
| 10 |
is_expected.to contain_nova_cell_v2('cell0').with( |
| 11 |
:database_connection => 'default' |
| 12 |
) |
| 13 |
is_expected.to contain_nova_cell_v2('default').with( |
| 14 |
:transport_url => 'default', |
| 15 |
:database_connection => 'default' |
| 16 |
) |
| 17 |
is_expected.to contain_class('nova::cell_v2::discover_hosts') |
| 18 |
} |
| 19 |
end |
| 20 |
end |
| 21 |
|
| 22 |
|
| 23 |
on_supported_os({ |
| 24 |
:supported_os => OSDefaults.get_supported_os |
| 25 |
}).each do |os,facts| |
| 26 |
context "on #{os}" do |
| 27 |
let (:facts) do |
| 28 |
facts.merge(OSDefaults.get_facts()) |
| 29 |
end |
| 30 |
|
| 31 |
it_configures 'nova::cell_v2::simple_setup' |
| 32 |
end |
| 33 |
end |
| 34 |
|
| 35 |
end |