diff options
Diffstat (limited to 'spec/factories/bulk_import')
-rw-r--r-- | spec/factories/bulk_import/failures.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/bulk_import/failures.rb b/spec/factories/bulk_import/failures.rb new file mode 100644 index 00000000000..1ebdfdd6c42 --- /dev/null +++ b/spec/factories/bulk_import/failures.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +require 'securerandom' + +FactoryBot.define do + factory :bulk_import_failure, class: 'BulkImports::Failure' do + association :entity, factory: :bulk_import_entity + + pipeline_class { 'BulkImports::TestPipeline' } + exception_class { 'StandardError' } + exception_message { 'Standard Error Message' } + correlation_id_value { SecureRandom.uuid } + end +end |