Skip to content

Commit be82a44

Browse files
committed
[API] Test Runner: Updates _internal/_health implementation
1 parent 618e7ce commit be82a44

File tree

1 file changed

+2
-6
lines changed
  • elasticsearch-api/api-spec-testing/test_file

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,8 @@ 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
167+
path = if args['feature']
168+
"_internal/_health/#{args.delete('feature')}/"
173169
else
174170
'_internal/_health'
175171
end

0 commit comments

Comments
 (0)