summaryrefslogtreecommitdiff
path: root/qa/qa/support/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/api.rb')
-rw-r--r--qa/qa/support/api.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/qa/support/api.rb b/qa/qa/support/api.rb
index 90924ffd40e..f5e4d4e294b 100644
--- a/qa/qa/support/api.rb
+++ b/qa/qa/support/api.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require 'rest-client'
+
module QA
module Support
module Api
@@ -7,6 +9,7 @@ module QA
HTTP_STATUS_CREATED = 201
HTTP_STATUS_NO_CONTENT = 204
HTTP_STATUS_ACCEPTED = 202
+ HTTP_STATUS_SERVER_ERROR = 500
def post(url, payload)
RestClient::Request.execute(