summaryrefslogtreecommitdiff
path: root/spec/factories/clusters/agents.rb
blob: 4dc82f91bab03e5d33850bb6a051edfea1656371 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

FactoryBot.define do
  factory :cluster_agent, class: 'Clusters::Agent' do
    project
    association :created_by_user, factory: :user

    sequence(:name) { |n| "agent-#{n}" }
  end
end