debian-mirror-gitlab/spec/factories/clusters/agents/project_authorizations.rb
2023-03-04 22:38:38 +05:30

18 lines
408 B
Ruby

# 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