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

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

FactoryBot.define do
  factory :agent_group_authorization, class: 'Clusters::Agents::GroupAuthorization' do
    association :agent, factory: :cluster_agent
    group

    transient do
      environments { nil }
    end

    config do
      { default_namespace: 'production' }.tap do |c|
        c[:environments] = environments if environments
      end
    end
  end
end