Welcome to mirror list, hosted at ThFree Co, Russian Federation.

resource.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 946cf9c17a7c7a8d4a37bf305c29e8e0eb748116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

FactoryBot.define do
  factory :ci_resource, class: 'Ci::Resource' do
    resource_group factory: :ci_resource_group

    trait(:retained) do
      processable factory: :ci_build
      partition_id { processable.partition_id }
    end
  end
end