summaryrefslogtreecommitdiff
path: root/qa/contracts/provider/environments/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/contracts/provider/environments/base.rb')
-rw-r--r--qa/contracts/provider/environments/base.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/qa/contracts/provider/environments/base.rb b/qa/contracts/provider/environments/base.rb
deleted file mode 100644
index 695ee6b867d..00000000000
--- a/qa/contracts/provider/environments/base.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-module Provider
- module Environments
- class Base
- attr_writer :base_url, :merge_request
-
- def call(env)
- @payload
- end
-
- def http(endpoint)
- Faraday.default_adapter = :net_http
- response = Faraday.get(@base_url + endpoint)
- @payload = [response.status, response.headers, [response.body]]
- self
- end
-
- def merge_request(endpoint)
- http(@merge_request + endpoint) if endpoint.include? '.json'
- end
- end
- end
-end