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

Rename collect license management reports

parent 9b4313cf
No related branches found
No related tags found
1 merge request!18124Rename license management in pipeline and build
...@@ -61,7 +61,7 @@ def collect_security_reports!(security_reports) ...@@ -61,7 +61,7 @@ def collect_security_reports!(security_reports)
end end
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| each_report(::Ci::JobArtifact::LICENSE_MANAGEMENT_REPORT_FILE_TYPES) do |file_type, blob|
next if ::Feature.disabled?(:parse_license_management_reports, default_enabled: true) next if ::Feature.disabled?(:parse_license_management_reports, default_enabled: true)
......
...@@ -136,7 +136,7 @@ def security_reports ...@@ -136,7 +136,7 @@ def security_reports
def license_management_report def license_management_report
::Gitlab::Ci::Reports::LicenseScanning::Report.new.tap do |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| 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 end
end end
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
end end
describe '#collect_license_management_reports!' do 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 } 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