summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMatthias Pigulla <mp@webfactory.de>2016-03-20 22:54:51 +0100
committerMatthias Pigulla <mp@webfactory.de>2016-03-21 08:39:56 +0100
commit5847fd26445ea45abcf5fca7044b2ee1a0888191 (patch)
tree4ea1ac7a6e11a74e049823897801b056d9c03786 /spec
parent767b3fb53e1502b2bcf6333af112b31eaa46fb52 (diff)
Add parameter to control reboot time
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/unattended_upgrades_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb
index dc2137f..d951a87 100644
--- a/spec/classes/unattended_upgrades_spec.rb
+++ b/spec/classes/unattended_upgrades_spec.rb
@@ -49,6 +49,8 @@ describe 'unattended_upgrades' do
/Unattended-Upgrade::Remove-Unused-Dependencies "true";/
).with_content(
/Unattended-Upgrade::Automatic-Reboot "false";/
+ ).with_content(
+ /Unattended-Upgrade::Automatic-Reboot-Time "now";/
).without_content(
/Unattended-Upgrade::Mail/
).without_content(
@@ -278,6 +280,7 @@ describe 'unattended_upgrades' do
'fix_interrupted_dpkg' => false,
'remove' => false,
'reboot' => true,
+ 'reboot_time' => '03:00',
},
verbose: 1,
legacy_origin: true,
@@ -328,6 +331,8 @@ describe 'unattended_upgrades' do
).with_content(
/Unattended-Upgrade::Automatic-Reboot "true";/
).with_content(
+ /Unattended-Upgrade::Automatic-Reboot-Time "03:00";/
+ ).with_content(
/Unattended-Upgrade::Mail "root@localhost";/
).with_content(
/Unattended-Upgrade::MailOnlyOnError "true";/