Skip to content

Commit 574a95d

Browse files
committed
[API] Test Runner: Adds _internal/_health
1 parent 6969da7 commit 574a95d

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,10 @@ def perform_internal(method, args, client, es_version)
137137
case method
138138
when '_internal.update_desired_nodes'
139139
http = 'PUT'
140-
141140
if (history_id = args.delete('history_id')).match?(/\s+/)
142141
require 'erb'
143142
history_id = ERB::Util.url_encode(history_id)
144143
end
145-
146144
path = "/_internal/desired_nodes/#{history_id}/#{args.delete('version')}"
147145
body = args.delete('body')
148146
# Replace $es_version with actual value:
@@ -157,6 +155,10 @@ def perform_internal(method, args, client, es_version)
157155
http = 'GET'
158156
path = '/_internal/desired_nodes/_latest'
159157
body = nil
158+
when '_internal.health'
159+
http = 'GET'
160+
path = '_internal/_health'
161+
body = args.delete('body')
160162
end
161163
@response = client.perform_request(http, path, args, body)
162164
client

0 commit comments

Comments
 (0)