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

aggregated_reports.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: eb678dc976622e92ff0226ac8ffb67cf471ffb99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

FactoryBot.define do
  factory :ci_reports_security_aggregated_reports, class: '::Gitlab::Ci::Reports::Security::AggregatedReport' do
    reports { FactoryBot.build_list(:ci_reports_security_report, 1) }
    findings { FactoryBot.build_list(:ci_reports_security_finding, 1) }

    skip_create

    initialize_with do
      ::Gitlab::Ci::Reports::Security::AggregatedReport.new(reports, findings)
    end
  end
end