2016-07-01 13:00:34 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-05-18 13:48:01 +02:00
|
|
|
describe 'openstacklib::defaults' do
|
|
|
|
shared_examples 'openstacklib::defaults' do
|
|
|
|
context 'with defaults' do
|
|
|
|
it { should contain_class('openstacklib::defaults') }
|
2016-07-01 13:00:34 +02:00
|
|
|
end
|
2018-05-18 13:48:01 +02:00
|
|
|
end
|
2016-07-01 13:00:34 +02:00
|
|
|
|
2018-05-18 13:48:01 +02:00
|
|
|
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())
|
2016-07-01 13:00:34 +02:00
|
|
|
end
|
2018-05-18 13:48:01 +02:00
|
|
|
|
|
|
|
it_behaves_like 'openstacklib::defaults'
|
2016-07-01 13:00:34 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|