Skip to content

Commit

Permalink
[API] Test Runner: Adds internal desired balance API
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Dec 6, 2022
1 parent 106a629 commit eebcb23
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions elasticsearch-api/api-spec-testing/test_file/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ def perform_internal(method, args, client, es_version)
http = 'DELETE'
path = '/_internal/desired_nodes/'
body = args.delete('body')
when '_internal.get_desired_nodes'
when /_internal\.get_([a-z_]+)/
http = 'GET'
path = '/_internal/desired_nodes/_latest'
path = case Regexp.last_match(1)
when 'desired_nodes'
'/_internal/desired_nodes/_latest'
when 'desired_balance'
'/_internal/desired_balance'
end
body = nil
when '_internal.health'
path = if args['feature']
Expand Down

0 comments on commit eebcb23

Please sign in to comment.