Commit 2d8e5dce authored by Piotr Skorupa's avatar Piotr Skorupa

Remove unnecessary http/s regex URL match

parent 79b6893e
......@@ -12,14 +12,14 @@ RSpec.describe Gitlab::UsageMetricDefinitionGenerator do
before do
stub_const("#{described_class}::TOP_LEVEL_DIR", temp_dir)
# Stub Prometheus requests from Gitlab::Utils::UsageData
stub_request(:get, %r{^https?://::1:9090/-/ready})
stub_request(:get, 'https://::1:9090/-/ready')
.to_return(
status: 200,
body: [{}].to_json,
headers: { 'Content-Type' => 'application/json' }
)
stub_request(:get, %r{^https?://::1:9090/api/v1/query\?query=.*})
stub_request(:get, %r{^https://::1:9090/api/v1/query\?query=.*})
.to_return(
status: 200,
body: [{}].to_json,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment