Skip to content

Commit

Permalink
[Test Runner] Support split_key when running user profile actions fro…
Browse files Browse the repository at this point in the history
…m test
  • Loading branch information
picandocodigo committed Oct 31, 2022
1 parent 95e7573 commit 232051b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions elasticsearch-api/api-spec-testing/test_file/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def execute(client, test = nil)
@response = client.send(_method, prepare_arguments(args, test))
end
client
when 'update_user_profile_data', 'get_user_profile', 'enable_user_profile', 'disable_user_profile'
args.each do |key, value|
args[key] = value.gsub(value, test.cached_values[value.gsub('$', '')]) if value.match?(/^\$/)
end
@response = client.send(_method, prepare_arguments(args, test))
client
else
@response = client.send(_method, prepare_arguments(args, test))
client
Expand Down

0 comments on commit 232051b

Please sign in to comment.