summaryrefslogtreecommitdiff
path: root/spec/factories/bulk_import/entities.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 07:08:36 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-21 07:08:36 +0000
commit48aff82709769b098321c738f3444b9bdaa694c6 (patch)
treee00c7c43e2d9b603a5a6af576b1685e400410dee /spec/factories/bulk_import/entities.rb
parent879f5329ee916a948223f8f43d77fba4da6cd028 (diff)
downloadgitlab-ce-48aff82709769b098321c738f3444b9bdaa694c6.tar.gz
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
Diffstat (limited to 'spec/factories/bulk_import/entities.rb')
-rw-r--r--spec/factories/bulk_import/entities.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/factories/bulk_import/entities.rb b/spec/factories/bulk_import/entities.rb
new file mode 100644
index 00000000000..3bf6af92d00
--- /dev/null
+++ b/spec/factories/bulk_import/entities.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :bulk_import_entity, class: 'BulkImports::Entity' do
+ bulk_import
+
+ source_type { :group_entity }
+ sequence(:source_full_path) { |n| "source-path-#{n}" }
+
+ sequence(:destination_namespace) { |n| "destination-path-#{n}" }
+ destination_name { 'Imported Entity' }
+
+ trait(:group_entity) do
+ source_type { :group_entity }
+ end
+
+ trait(:project_entity) do
+ source_type { :project_entity }
+ end
+ end
+end