From be09e0dedd89fa8fa1ca1e3f1d484d4a2ee2916b Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Tue, 20 Aug 2019 16:29:20 +0100 Subject: [PATCH] test(inspec): improve to work on `amazon` as well --- test/integration/default/controls/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/default/controls/base.rb b/test/integration/default/controls/base.rb index 11665e2..50dddde 100644 --- a/test/integration/default/controls/base.rb +++ b/test/integration/default/controls/base.rb @@ -3,7 +3,7 @@ title 'Test logrotate installation' case os[:name] -when 'redhat', 'centos', 'fedora' +when 'redhat', 'centos', 'fedora', 'amazon' pkg = 'cronie' else pkg = 'logrotate' @@ -27,7 +27,7 @@ describe file('/etc/logrotate.d') do end case os[:name] -when 'redhat', 'centos', 'fedora' +when 'redhat', 'centos', 'fedora', 'amazon' service = 'crond' else service = 'cron'