Skip to content
Snippets Groups Projects
Commit e6a9bb84 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Support licenses and performance

parent 2155ba8b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -18,7 +18,9 @@ module Ci
sast: 'gl-sast-report.json',
dependency_scanning: 'gl-dependency-scanning-report.json',
container_scanning: 'gl-container-scanning-report.json',
dast: 'gl-dast-report.json'
dast: 'gl-dast-report.json',
license_management: 'gl-license-management-report.json',
performance: 'performance.json'
}.freeze
 
TYPE_AND_FORMAT_PAIRS = {
Loading
Loading
@@ -29,7 +31,9 @@ module Ci
sast: :gzip,
dependency_scanning: :gzip,
container_scanning: :gzip,
dast: :gzip
dast: :gzip,
license_management: :gzip,
performance: :gzip
}.freeze
 
belongs_to :project
Loading
Loading
@@ -73,7 +77,9 @@ module Ci
sast: 5, ## EE-specific
dependency_scanning: 6, ## EE-specific
container_scanning: 7, ## EE-specific
dast: 8 ## EE-specific
dast: 8, ## EE-specific
license_management: 9, ## EE-specific
performance: 10 ## EE-specific
}
 
enum file_format: {
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@ module Gitlab
include Validatable
include Attributable
 
ALLOWED_KEYS = %i[junit sast dependency_scanning container_scanning dast].freeze
ALLOWED_KEYS = %i[junit sast dependency_scanning container_scanning dast performance license_management].freeze
 
attributes ALLOWED_KEYS
 
Loading
Loading
@@ -25,6 +25,8 @@ module Gitlab
validates :dependency_scanning, array_of_strings_or_string: true
validates :container_scanning, array_of_strings_or_string: true
validates :dast, array_of_strings_or_string: true
validates :performance, array_of_strings_or_string: true
validates :license_management, array_of_strings_or_string: true
end
end
 
Loading
Loading
Loading
Loading
@@ -37,6 +37,8 @@ describe Gitlab::Ci::Config::Entry::Reports do
:dependency_scanning | 'gl-dependency-scanning-report.json'
:container_scanning | 'gl-container-scanning-report.json'
:dast | 'gl-dast-report.json'
:license_management | 'gl-license-management-report.json'
:performance | 'performance.json'
end
 
with_them do
Loading
Loading
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