2019-10-20 17:06:17 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-18 22:12:02 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 05:08:32 -04:00
|
|
|
RSpec.describe 'rest-client dns rebinding protection' do
|
2019-09-27 07:35:37 -04:00
|
|
|
it_behaves_like 'a request using Gitlab::UrlBlocker' do
|
|
|
|
let(:http_method) { :get }
|
|
|
|
let(:url_blocked_error_class) { ArgumentError }
|
2019-07-18 22:12:02 -04:00
|
|
|
|
2019-09-27 07:35:37 -04:00
|
|
|
def make_request(uri)
|
|
|
|
RestClient.get(uri)
|
2019-07-18 22:12:02 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|