18 lines
402 B
Ruby
18 lines
402 B
Ruby
# 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
|