puppet-mistral/spec/classes/mistral_deps_spec.rb
Tobias Urdin c944e90617 Convert to rspec-puppet-facts
Change-Id: Id3748b79510756ff32d6523bd7e7727175c94542
2018-11-24 15:16:05 +01:00

31 lines
889 B
Ruby

require 'spec_helper'
describe 'mistral::deps' do
shared_examples 'mistral::deps' do
it {
should contain_anchor('mistral::install::begin')
should contain_anchor('mistral::install::end')
should contain_anchor('mistral::config::begin')
should contain_anchor('mistral::config::end')
should contain_anchor('mistral::db::begin')
should contain_anchor('mistral::db::end')
should contain_anchor('mistral::dbsync::begin')
should contain_anchor('mistral::dbsync::end')
should contain_anchor('mistral::service::begin')
should contain_anchor('mistral::service::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 'mistral::deps'
end
end
end