Commit 4ccac676 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-fix-geo-port-spec' into 'master'

Fix Geo specs failing due to "lock out" validation errors

Closes #4303

See merge request gitlab-org/gitlab-ee!3726
parents fa80de9a 80863151
FactoryGirl.define do
factory :geo_node do
sequence(:url) do |port|
# Start at a number higher than the current port to avoid the GeoNode
# "lock out" validation
sequence(:url, Gitlab.config.gitlab.port + 1) do |port|
uri = URI.parse("http://#{Gitlab.config.gitlab.host}:#{Gitlab.config.gitlab.relative_url_root}")
uri.port = port
uri.path += '/' unless uri.path.end_with?('/')
......
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