diff options
Diffstat (limited to 'spec/factories/ci/reports')
-rw-r--r-- | spec/factories/ci/reports/security/flags.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/factories/ci/reports/security/flags.rb b/spec/factories/ci/reports/security/flags.rb new file mode 100644 index 00000000000..7efe72276c9 --- /dev/null +++ b/spec/factories/ci/reports/security/flags.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :ci_reports_security_flag, class: '::Gitlab::Ci::Reports::Security::Flag' do + type { 'flagged-as-likely-false-positive' } + origin { 'post analyzer X' } + description { 'static string to sink' } + + skip_create + + initialize_with do + ::Gitlab::Ci::Reports::Security::Flag.new(**attributes) + end + end +end |