blob: eecbfe95bfc6f09d52f93284fa1d442e11ab8c1b (
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_project_authorization, class: 'Clusters::Agents::ProjectAuthorization' do
association :agent, factory: :cluster_agent
project
transient do
environments { nil }
end
config do
{ default_namespace: 'production' }.tap do |c|
c[:environments] = environments if environments
end
end
end
end
|