-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2346 from alphagov/improve-db-seeds
Improve db seeds
- Loading branch information
Showing
1 changed file
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,38 @@ | |
slug: "government-digital-service", | ||
) | ||
|
||
User.create!( | ||
name: "Test Superadmin", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: Roles::Superadmin.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: gds, | ||
) | ||
|
||
User.create!( | ||
name: "Test Admin", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: :superadmin, | ||
role: Roles::Admin.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: gds, | ||
) | ||
|
||
User.create!( | ||
name: "Test Super Organisation Admin", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: Roles::SuperOrganisationAdmin.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: gds, | ||
) | ||
|
||
User.create!( | ||
name: "Test Organisation Admin", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: Roles::OrganisationAdmin.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: gds, | ||
) | ||
|
@@ -36,7 +63,7 @@ | |
name: "Test User", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: :normal, | ||
role: Roles::Normal.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: test_organisation_without_2sv, | ||
) | ||
|
@@ -72,7 +99,7 @@ | |
name: "Test User with 2SV enabled", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: :normal, | ||
role: Roles::Normal.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: test_organisation_without_2sv, | ||
require_2sv: true, | ||
|
@@ -83,7 +110,7 @@ | |
name: "Test User from organisation with mandatory 2SV", | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: :normal, | ||
role: Roles::Normal.role_name, | ||
confirmed_at: Time.zone.now, | ||
organisation: test_organisation_with_2sv, | ||
require_2sv: true, | ||
|
@@ -95,7 +122,7 @@ | |
api_user: true, | ||
email: "[email protected]", | ||
password: "6fe552ca-d406-4c54-b7a6-041ed1ade6cd", | ||
role: :normal, | ||
role: Roles::Normal.role_name, | ||
confirmed_at: Time.zone.now, | ||
require_2sv: false, | ||
) | ||
|