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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /spec/factories/bulk_import/exports.rb
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'spec/factories/bulk_import/exports.rb')
-rw-r--r--spec/factories/bulk_import/exports.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/factories/bulk_import/exports.rb b/spec/factories/bulk_import/exports.rb
new file mode 100644
index 00000000000..dd8831ce33a
--- /dev/null
+++ b/spec/factories/bulk_import/exports.rb
@@ -0,0 +1,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