2021-11-11 11:23:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :agent_group_authorization, class: 'Clusters::Agents::GroupAuthorization' do
|
|
|
|
association :agent, factory: :cluster_agent
|
|
|
|
group
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
transient do
|
|
|
|
environments { nil }
|
|
|
|
end
|
|
|
|
|
|
|
|
config do
|
|
|
|
{ default_namespace: 'production' }.tap do |c|
|
|
|
|
c[:environments] = environments if environments
|
|
|
|
end
|
|
|
|
end
|
2021-11-11 11:23:49 +05:30
|
|
|
end
|
|
|
|
end
|