Skip to content

Commit bec2c2b

Browse files
committed
[API] Test Runner: Updates internal health API
1 parent 1670661 commit bec2c2b

File tree

1 file changed

+9
-1
lines changed
  • elasticsearch-api/api-spec-testing/test_file

1 file changed

+9
-1
lines changed

elasticsearch-api/api-spec-testing/test_file/action.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,16 @@ def perform_internal(method, args, client, es_version)
164164
path = '/_internal/desired_nodes/_latest'
165165
body = nil
166166
when '_internal.health'
167+
path = if args['component']
168+
if args['feature']
169+
"_internal/_health/#{args.delete('component')}/#{args.delete('feature')}"
170+
else
171+
"_internal/_health/#{args.delete('component')}/"
172+
end
173+
else
174+
'_internal/_health'
175+
end
167176
http = 'GET'
168-
path = '_internal/_health'
169177
body = args.delete('body')
170178
end
171179
@response = Elasticsearch::API::Response.new(client.perform_request(http, path, args, body))

0 commit comments

Comments
 (0)