From 3e3a7ae9b400cc5b476fa6d005518a9379cbfd5a Mon Sep 17 00:00:00 2001 From: vimesa Date: Mon, 11 Dec 2023 13:50:52 +0000 Subject: [PATCH] Rubocop --- spec/services/chef_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/services/chef_spec.rb b/spec/services/chef_spec.rb index 1bbd735..a908e80 100644 --- a/spec/services/chef_spec.rb +++ b/spec/services/chef_spec.rb @@ -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| @@ -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'")