Welcome to mirror list, hosted at ThFree Co, Russian Federation.

remote_mirrors.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa0ace30d90c595333b0d2a55a06d3436b9d8650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

FactoryBot.define do
  factory :remote_mirror, class: 'RemoteMirror' do
    association :project, :repository
    url { "http://foo:bar@test.com" }

    trait :ssh do
      url { 'ssh://git@test.com:foo/bar.git' }
      auth_method { 'ssh_public_key' }
    end
  end
end