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

exports.rb « bulk_import « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd8831ce33a9ed3fad28d23fcb693e0b684fd961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

FactoryBot.define do
  factory :bulk_import_export, class: 'BulkImports::Export', traits: %i[started] do
    group
    relation { 'labels' }

    trait :started do
      status { 0 }

      sequence(:jid) { |n| "bulk_import_export_#{n}" }
    end

    trait :finished do
      status { 1 }

      sequence(:jid) { |n| "bulk_import_export_#{n}" }
    end

    trait :failed do
      status { -1 }
    end
  end
end