Commit f2c902d3 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Fix usage of new names

parent 7c73f9d3
......@@ -61,16 +61,16 @@ module EE
end
end
def collect_license_scanning_reports!(license_management_report)
def collect_license_scanning_reports!(license_scanning_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)
next unless project.feature_available?(:license_management)
::Gitlab::Ci::Parsers.fabricate!(file_type).parse!(blob, license_management_report)
::Gitlab::Ci::Parsers.fabricate!(file_type).parse!(blob, license_scanning_report)
end
license_management_report
license_scanning_report
end
def collect_dependency_list_reports!(dependency_list_report)
......
......@@ -170,7 +170,7 @@ describe Ci::Build do
end
end
describe '#collect_license_management_reports!' do
describe '#collect_license_scanning_reports!' do
subject { job.collect_license_scanning_reports!(license_scanning_report) }
let(:license_scanning_report) { Gitlab::Ci::Reports::LicenseScanning::Report.new }
......
......@@ -239,7 +239,7 @@ describe Ci::Pipeline do
end
end
describe '#license_management_reports' do
describe '#license_scanning_reports' do
subject { pipeline.license_scanning_report }
before do
......
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