debian-mirror-gitlab/spec/initializers/rest-client-hostname_override_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
323 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2019-09-04 21:01:54 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe 'rest-client dns rebinding protection' do
2019-12-04 20:38:33 +05:30
it_behaves_like 'a request using Gitlab::UrlBlocker' do
let(:http_method) { :get }
let(:url_blocked_error_class) { ArgumentError }
2019-09-04 21:01:54 +05:30
2019-12-04 20:38:33 +05:30
def make_request(uri)
RestClient.get(uri)
2019-09-04 21:01:54 +05:30
end
end
end