summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/unattended_upgrades_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb
index f78eaa9..1333434 100644
--- a/spec/classes/unattended_upgrades_spec.rb
+++ b/spec/classes/unattended_upgrades_spec.rb
@@ -96,7 +96,7 @@ describe 'unattended_upgrades' do
let(:facts) { {
:osfamily => 'Debian',
:lsbdistid => 'Ubuntu',
- :lsbistcodename => 'truste',
+ :lsbistcodename => 'trusty',
:lsbrelease => '14.04',
} }
it {
@@ -105,8 +105,11 @@ describe 'unattended_upgrades' do
'group' => 'root',
'mode' => '0644',
}).with_content(
- # This is the only line that's different for Ubuntu compared to Debian
- /Unattended-Upgrade::Allowed-Origins {/
+ # This is the only section that's different for Ubuntu compared to Debian
+ /\Unattended-Upgrade::Allowed-Origins\ {\n
+ \t"\${distro_id}\ \${distro_codename}-security";\n
+ \t"\${distro_id}\ \${distro_codename}-updates";\n
+ };/x
)}
end