Files
puppet-nova/spec/defines/nova_cell_v2_cell_spec.rb
Oliver Walsh 5dcd344d3f Deprecate nova::cell_v2::cell and add reno for new cell_v2 type.
Change-Id: Id47b85550ad0e058b25cab237e4950f1da385895
Related-Bug: #1670488
2017-04-13 10:02:07 +00:00

32 lines
617 B
Ruby

require 'spec_helper'
describe 'nova::cell_v2::cell' do
let (:title) { 'foo' }
shared_examples_for 'nova::cell_v2::cell' do
context 'with defaults' do
it {
is_expected.to contain_nova_cell_v2("#{title}").with(
:transport_url => 'default',
:database_connection => 'default'
)
}
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_configures 'nova::cell_v2::cell'
end
end
end