2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-03 08:55:14 -04:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :remote_mirror, class: 'RemoteMirror' do
|
|
|
|
association :project, :repository
|
2019-10-01 20:06:26 -04:00
|
|
|
url { "http://foo:bar@test.com" }
|
2020-04-28 17:09:35 -04:00
|
|
|
|
|
|
|
trait :ssh do
|
|
|
|
url { 'ssh://git@test.com:foo/bar.git' }
|
|
|
|
auth_method { 'ssh_public_key' }
|
|
|
|
end
|
2018-05-03 08:55:14 -04:00
|
|
|
end
|
|
|
|
end
|