summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-04 03:09:50 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-04 03:09:50 +0000
commit21be9646a94e2c145897e25d9c521523d55e1614 (patch)
tree2873c5461d2222f9e51ba9cea9d2ed87d3f87e20 /spec/factories
parent933d8b6d85b56a2f0f9d8ffe54f0212422537b03 (diff)
downloadgitlab-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.rb18
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