From 8ab91fd450c53875e865b576b82dd73fdbc7374c Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 4 Jun 2021 08:05:02 +0100 Subject: [PATCH] test(inspec): add `service` verification control [skip ci] Provide this after noticing this was missing when reviewing #45. --- test/integration/default/controls/service_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/integration/default/controls/service_spec.rb diff --git a/test/integration/default/controls/service_spec.rb b/test/integration/default/controls/service_spec.rb new file mode 100644 index 0000000..2e1e82c --- /dev/null +++ b/test/integration/default/controls/service_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +control 'Keepalived service' do + title 'should be installed' + + describe service('keepalived') do + it { should be_installed } + it { should be_enabled } + it { should be_running } + end +end