-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
fixtures: | ||
repositories: | ||
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git | ||
sudo: https://github.com/saz/puppet-sudo.git | ||
systemd: https://github.com/voxpupuli/puppet-systemd.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'bolt' do | ||
on_supported_os.each do |os, facts| | ||
context "on #{os}" do | ||
let :facts do | ||
facts | ||
end | ||
|
||
context 'with all defaults' do | ||
it { is_expected.to compile.with_all_deps } | ||
it { is_expected.to contain_package('puppet-bolt') } | ||
it { is_expected.to contain_package('puppet-tools-release') } | ||
it { is_expected.not_to contain_yumrepo('puppet-tools') } | ||
end | ||
|
||
context 'with use_release_package=false' do | ||
let :params do | ||
{ use_release_package: false } | ||
end | ||
|
||
it { is_expected.not_to contain_package('puppet-tools-release') } | ||
Check failure on line 24 in spec/classes/init_spec.rb
|
||
it { is_expected.to contain_yumrepo('puppet-tools') } | ||
Check failure on line 25 in spec/classes/init_spec.rb
|
||
end | ||
end | ||
end | ||
end |