summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-04-14 09:59:01 -0700
committerMorgan Haskel <morgan@puppetlabs.com>2015-04-14 11:10:55 -0700
commit8a9919723045d15d0352f8970a99e764a86a40b4 (patch)
tree2a668b91a4d3c388c5ffc616f4f313c9a82ce979
parent886245f2cb7614a8c749d34e6f08ee17b92c970f (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.
-rw-r--r--.fixtures.yml2
-rw-r--r--spec/classes/unattended_upgrades_spec.rb12
2 files changed, 11 insertions, 3 deletions
diff --git a/.fixtures.yml b/.fixtures.yml
index 7566fe3..7930e07 100644
--- a/.fixtures.yml
+++ b/.fixtures.yml
@@ -6,6 +6,6 @@ fixtures:
repositories:
apt:
repo: "https://github.com/puppetlabs/puppetlabs-apt.git"
- ref: "2.0.x"
+ ref: "db9daeb1831930f648b99e1867867ba6a071e68a"
symlinks:
unattended_upgrades: "#{source_dir}"
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