Commit 86fadb17 authored by Peter Leitzen's avatar Peter Leitzen

Use static known URL for ExternalAuditEventDestination factory

Previously, a random generated URL could point to a valid IP which might
be considered as "local network" or "loopback" by Gitlab::UrlBlocker and
fail during record creation with:

Validation failed: Destination url is blocked: Requests to loopback
addresses are not allowed

example.org is a known, static and public URL.
parent 72f23cf7
......@@ -3,6 +3,6 @@
FactoryBot.define do
factory :external_audit_event_destination, class: 'AuditEvents::ExternalAuditEventDestination' do
group
sequence(:destination_url) { |n| "#{FFaker::Internet.http_url}/#{n}" }
sequence(:destination_url) { |n| "http://example.org/#{n}" }
end
end
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