mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Refactor user to admin and api user
This commit is contained in:
parent
f3215680d5
commit
037cb57e00
34 changed files with 551 additions and 551 deletions
25
spec/fabricators/admin_user_fabricator.rb
Normal file
25
spec/fabricators/admin_user_fabricator.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
# currently identity code generation not implemented,
|
||||
# thus default user is FI for a while
|
||||
Fabricator(:admin_user) do
|
||||
username 'gitlab'
|
||||
password 'ghyt9e4fu'
|
||||
email 'info@gitlab.eu'
|
||||
country_code 'FI'
|
||||
roles ['admin']
|
||||
end
|
||||
|
||||
Fabricator(:ee_user, from: :admin_user) do
|
||||
identity_code "45002036517"
|
||||
country_code 'EE'
|
||||
roles ['admin']
|
||||
end
|
||||
|
||||
# Valid identity codes
|
||||
# 48805195231
|
||||
# 45002036517
|
||||
# 47601126511
|
||||
# 48802292754
|
||||
# 45912080223
|
||||
# 34406056538
|
||||
# 39503140321
|
||||
# 39507241618
|
Loading…
Add table
Add a link
Reference in a new issue