Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ViMesTor committed Dec 11, 2023
1 parent 4e85841 commit 3e3a7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/services/chef_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
service = 'chef-client'
config_file = '/etc/chef/client.rb'
port = 4443
serv_consul = 'erchef'
api_endpoint = 'http://localhost:8500/v1'

describe "Checking packages for #{service}..." do
packages.each do |package|
Expand Down Expand Up @@ -46,8 +48,6 @@
end

describe 'Registered in consul' do
serv_consul = 'erchef'
api_endpoint = 'http://localhost:8500/v1'
service_json_cluster = command("curl -s #{api_endpoint}/catalog/service/#{serv_consul} | jq -c 'group_by(.ID)[]'")
service_json_cluster = service_json_cluster.stdout.chomp.split("\n")
health_cluster = command("curl -s #{api_endpoint}/health/service/#{serv_consul} | jq -r '.[].Checks[0].Status'")
Expand Down

0 comments on commit 3e3a7ae

Please sign in to comment.