From 5847fd26445ea45abcf5fca7044b2ee1a0888191 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sun, 20 Mar 2016 22:54:51 +0100 Subject: Add parameter to control reboot time --- spec/classes/unattended_upgrades_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') 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, @@ -327,6 +330,8 @@ describe 'unattended_upgrades' do /Unattended-Upgrade::Remove-Unused-Dependencies "false";/ ).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( -- cgit v1.2.3