diff options
author | Morgan Haskel <morgan@puppetlabs.com> | 2015-04-14 09:59:01 -0700 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2015-04-14 11:10:55 -0700 |
commit | 8a9919723045d15d0352f8970a99e764a86a40b4 (patch) | |
tree | 2a668b91a4d3c388c5ffc616f4f313c9a82ce979 /spec | |
parent | 886245f2cb7614a8c749d34e6f08ee17b92c970f (diff) |
Test fixes
puppetlabs_spec_helper doesn't allow pinning to a branch instead of a
tag/ref, and the requires are in the apt_conf not on the files.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/unattended_upgrades_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index b31f3d7..d53f7d5 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -12,12 +12,21 @@ describe 'unattended_upgrades' do it { should contain_package("unattended-upgrades") } + it { should contain_apt__conf('unattended-upgrades').with({ + "require" => "Package[unattended-upgrades]", + }) + } + + it { should contain_apt__conf('periodic').with({ + "require" => "Package[unattended-upgrades]", + }) + } + it { should create_file(file_unattended).with({ "owner" => "root", "group" => "root", "mode" => "0644", - "require" => "Package[unattended-upgrades]", }) } @@ -26,7 +35,6 @@ describe 'unattended_upgrades' do "owner" => "root", "group" => "root", "mode" => "0644", - "require" => "Package[unattended-upgrades]", }) } end |