2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
FactoryBot.define do
|
|
|
|
factory :remote_mirror, class: 'RemoteMirror' do
|
|
|
|
association :project, :repository
|
2019-12-21 20:55:43 +05:30
|
|
|
url { "http://foo:bar@test.com" }
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
trait :ssh do
|
|
|
|
url { 'ssh://git@test.com:foo/bar.git' }
|
|
|
|
auth_method { 'ssh_public_key' }
|
|
|
|
end
|
2018-10-15 14:42:47 +05:30
|
|
|
end
|
|
|
|
end
|