style(test): improve Ruby style
This commit is contained in:
parent
6010cc32b8
commit
461ce4ffcd
@ -1,23 +1,24 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
control 'prometheus packages' do
|
||||
title 'should be installed'
|
||||
|
||||
packages =
|
||||
case platform[:family]
|
||||
when 'redhat'
|
||||
packages = %w[
|
||||
%w[
|
||||
prometheus2
|
||||
alertmanager
|
||||
node_exporter
|
||||
]
|
||||
when 'debian'
|
||||
packages = %w[
|
||||
%w[
|
||||
prometheus
|
||||
prometheus-alertmanager
|
||||
prometheus-node-exporter
|
||||
]
|
||||
end
|
||||
|
||||
control 'prometheus packages' do
|
||||
title 'should be installed'
|
||||
|
||||
packages.each do |p|
|
||||
describe package(p) do
|
||||
it { should be_installed }
|
||||
|
Loading…
Reference in New Issue
Block a user