Skip to content

Commit 172dc14

Browse files
committed
[DOCS] Accepts 201 as successful status in automatic docs generation
1 parent d68b46a commit 172dc14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rake_tasks/doc_generator.rake

+4-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ module TestDocs
203203

204204
def self.response_successful(response)
205205
[true, false].include?(response) ||
206-
(response.is_a?(Elasticsearch::API::Response) && response.status == 200)
206+
(
207+
response.is_a?(Elasticsearch::API::Response) &&
208+
[200, 201].include?(response.status)
209+
)
207210
end
208211
end

0 commit comments

Comments
 (0)