Commit 5a5b9ec3 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Rename collect license management reports

parent 9b4313cf
......@@ -61,7 +61,7 @@ module EE
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 @@ module EE
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 @@ describe Ci::Build do
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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment