Skip to content

Commit 232051b

Browse files
committed
[Test Runner] Support split_key when running user profile actions from test
1 parent 95e7573 commit 232051b

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ def execute(client, test = nil)
122122
@response = client.send(_method, prepare_arguments(args, test))
123123
end
124124
client
125+
when 'update_user_profile_data', 'get_user_profile', 'enable_user_profile', 'disable_user_profile'
126+
args.each do |key, value|
127+
args[key] = value.gsub(value, test.cached_values[value.gsub('$', '')]) if value.match?(/^\$/)
128+
end
129+
@response = client.send(_method, prepare_arguments(args, test))
130+
client
125131
else
126132
@response = client.send(_method, prepare_arguments(args, test))
127133
client

0 commit comments

Comments
 (0)