diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-04 03:09:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-04 03:09:50 +0000 |
commit | 21be9646a94e2c145897e25d9c521523d55e1614 (patch) | |
tree | 2873c5461d2222f9e51ba9cea9d2ed87d3f87e20 /spec/factories | |
parent | 933d8b6d85b56a2f0f9d8ffe54f0212422537b03 (diff) | |
download | gitlab-ce-21be9646a94e2c145897e25d9c521523d55e1614.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/clusters/applications/helm.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb index 0152b16c8ea..7e52c54d4f1 100644 --- a/spec/factories/clusters/applications/helm.rb +++ b/spec/factories/clusters/applications/helm.rb @@ -77,6 +77,24 @@ FactoryBot.define do trait :no_helm_installed do cluster factory: %i(cluster provided_by_gcp) end + + trait :modsecurity_blocking do + modsecurity_enabled { true } + modsecurity_mode { :blocking } + end + + trait :modsecurity_logging do + modsecurity_enabled { true } + modsecurity_mode { :logging } + end + + trait :modsecurity_disabled do + modsecurity_enabled { false } + end + + trait :modsecurity_not_installed do + modsecurity_enabled { nil } + end end factory :clusters_applications_cert_manager, class: 'Clusters::Applications::CertManager' do |