Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/container_registry/protection/rules.rb')
-rw-r--r--spec/factories/container_registry/protection/rules.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/container_registry/protection/rules.rb b/spec/factories/container_registry/protection/rules.rb
new file mode 100644
index 00000000000..cbd5c9d8652
--- /dev/null
+++ b/spec/factories/container_registry/protection/rules.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :container_registry_protection_rule, class: 'ContainerRegistry::Protection::Rule' do
+ project
+ container_path_pattern { '@my_scope/my_container' }
+ delete_protected_up_to_access_level { :developer }
+ push_protected_up_to_access_level { :developer }
+ end
+end