Skip to content
Snippets Groups Projects
Unverified Commit 5a5b9ec3 authored by Tetiana Chupryna's avatar Tetiana Chupryna :sunflower:
Browse files

Rename collect license management reports

parent 9b4313cf
1 merge request!18124Rename license management in pipeline and build
......@@ -61,7 +61,7 @@ def collect_security_reports!(security_reports)
end
end
def collect_license_management_reports!(license_management_report)
def collect_license_scanning_reports!(license_management_report)
each_report(::Ci::JobArtifact::LICENSE_MANAGEMENT_REPORT_FILE_TYPES) do |file_type, blob|
next if ::Feature.disabled?(:parse_license_management_reports, default_enabled: true)
......
......@@ -136,7 +136,7 @@ def security_reports
def license_management_report
::Gitlab::Ci::Reports::LicenseScanning::Report.new.tap do |license_management_report|
builds.latest.with_reports(::Ci::JobArtifact.license_management_reports).each do |build|
build.collect_license_management_reports!(license_management_report)
build.collect_license_scanning_reports!(license_management_report)
end
end
end
......
......@@ -171,7 +171,7 @@
end
describe '#collect_license_management_reports!' do
subject { job.collect_license_management_reports!(license_scanning_report) }
subject { job.collect_license_scanning_reports!(license_scanning_report) }
let(:license_scanning_report) { Gitlab::Ci::Reports::LicenseScanning::Report.new }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment