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.
This commit is contained in:
parent
049db2bc8e
commit
2cfb5a74f3
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Overide by Platform
|
# Overide by Platform
|
||||||
root_group =
|
root_group =
|
||||||
case platform[:family]
|
case platform[:family]
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Overide by Platform
|
# Overide by Platform
|
||||||
package_name =
|
package_name =
|
||||||
case platform[:family]
|
case platform[:family]
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Overide by Platform
|
# Overide by Platform
|
||||||
service_name = 'sshd'
|
service_name = 'sshd'
|
||||||
if platform[:family] == 'debian'
|
service_name = 'ssh' if platform[:family] == 'debian'
|
||||||
service_name = 'ssh'
|
|
||||||
end
|
|
||||||
|
|
||||||
control 'openssh service' do
|
control 'openssh service' do
|
||||||
impact 0.5
|
impact 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user