We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80fd9d2 commit ceb7abeCopy full SHA for ceb7abe
api-spec-testing/test_file/action.rb
@@ -67,6 +67,17 @@ def execute(client, test = nil)
67
68
_method = chain[-1]
69
case _method
70
+ when 'bulk'
71
+ arguments = prepare_arguments(args, test)
72
+ arguments[:body].map! do |item|
73
+ if item.is_a?(Hash)
74
+ item
75
+ elsif item.is_a?(String)
76
+ symbolize_keys(JSON.parse(item))
77
+ end
78
+ end if arguments[:body].is_a? Array
79
+ @response = client.send(_method, arguments)
80
+ client
81
when 'headers'
82
headers = prepare_arguments(args, test)
83
# TODO: Remove Authorization headers while x_pack_rest_user is fixed
0 commit comments