From 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 18 Nov 2021 13:16:36 +0000 Subject: Add latest changes from gitlab-org/gitlab@14-5-stable-ee --- .../factories/operations/feature_flags/strategy.rb | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'spec/factories/operations') diff --git a/spec/factories/operations/feature_flags/strategy.rb b/spec/factories/operations/feature_flags/strategy.rb index bdb5d9f0f3c..8d04b6d25aa 100644 --- a/spec/factories/operations/feature_flags/strategy.rb +++ b/spec/factories/operations/feature_flags/strategy.rb @@ -5,5 +5,37 @@ FactoryBot.define do association :feature_flag, factory: :operations_feature_flag name { "default" } parameters { {} } + + trait :default do + name { "default" } + parameters { {} } + end + + trait :gitlab_userlist do + association :user_list, factory: :operations_feature_flag_user_list + name { "gitlabUserList" } + parameters { {} } + end + + trait :flexible_rollout do + name { "flexibleRollout" } + parameters do + { + groupId: 'default', + rollout: '10', + stickiness: 'default' + } + end + end + + trait :gradual_rollout do + name { "gradualRolloutUserId" } + parameters { { percentage: '10', groupId: 'default' } } + end + + trait :userwithid do + name { "userWithId" } + parameters { { userIds: 'user1' } } + end end end -- cgit v1.2.3