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

identifiers.rb « security « reports « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5211cb5c54a8c58f5ce2ea24d3eaf80a1ee8a583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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