debian-mirror-gitlab/spec/factories/ci/reports/security/identifiers.rb
2021-09-30 23:02:18 +05:30

15 lines
409 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :ci_reports_security_identifier, class: '::Gitlab::Ci::Reports::Security::Identifier' do
external_id { 'PREDICTABLE_RANDOM' }
external_type { 'find_sec_bugs_type' }
name { "#{external_type}-#{external_id}" }
skip_create
initialize_with do
::Gitlab::Ci::Reports::Security::Identifier.new(**attributes)
end
end
end