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/users.rb')
-rw-r--r--spec/factories/users.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/spec/factories/users.rb b/spec/factories/users.rb
index e641f925758..351583b7ef6 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -10,6 +10,7 @@ FactoryBot.define do
confirmed_at { Time.now }
confirmation_token { nil }
can_create_group { true }
+ color_scheme_id { 1 }
trait :admin do
admin { true }
@@ -59,6 +60,10 @@ FactoryBot.define do
user_type { :project_bot }
end
+ trait :service_account do
+ user_type { :service_account }
+ end
+
trait :migration_bot do
user_type { :migration_bot }
end
@@ -67,6 +72,10 @@ FactoryBot.define do
user_type { :security_bot }
end
+ trait :llm_bot do
+ user_type { :llm_bot }
+ end
+
trait :external do
external { true }
end
@@ -111,14 +120,6 @@ FactoryBot.define do
end
end
- trait :two_factor_via_u2f do
- transient { registrations_count { 5 } }
-
- after(:create) do |user, evaluator|
- create_list(:u2f_registration, evaluator.registrations_count, user: user)
- end
- end
-
trait :two_factor_via_webauthn do
transient { registrations_count { 5 } }