openssh-formula/test/integration/default/controls/services_spec.rb
Daniel Dehennin 2cfb5a74f3 fix(inspec): make rubocop happy
* test/integration/default/controls/services_spec.rb: favor modifier
  if usage when having a single-line body.

* test/integration/default/controls/config_spec.rb: add frozen string
  literal comment.

* test/integration/default/controls/packages_spec.rb: ditoo.

* test/integration/default/controls/services_spec.rb: ditoo.
2020-07-17 16:31:46 +02:00

16 lines
317 B
Ruby

# frozen_string_literal: true
# Overide by Platform
service_name = 'sshd'
service_name = 'ssh' if platform[:family] == 'debian'
control 'openssh service' do
impact 0.5
title 'should be running and enabled'
describe service(service_name) do
it { should be_enabled }
it { should be_running }
end
end