Browse Source

Update review app user passwords (#2616)

* Update review app user passwords

* Add env var to .env files
pull/2626/head
kosiakkatrina 4 months ago committed by GitHub
parent
commit
e92b2fd312
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      .env.example
  2. 1
      .env.test
  3. 24
      db/seeds.rb

1
.env.example

@ -6,3 +6,4 @@ OTP_SECRET_ENCRYPTION_KEY="<Generate this using bundle exec rake secret>"
APP_HOST="http://localhost:3000" APP_HOST="http://localhost:3000"
OS_DATA_KEY=OS_DATA_KEY OS_DATA_KEY=OS_DATA_KEY
REVIEW_APP_USER_PASSWORD=password

1
.env.test

@ -1,2 +1,3 @@
APP_HOST="http://localhost:3000" APP_HOST="http://localhost:3000"
OS_DATA_KEY=OS_DATA_KEY OS_DATA_KEY=OS_DATA_KEY
REVIEW_APP_USER_PASSWORD=password

24
db/seeds.rb

@ -107,7 +107,7 @@ unless Rails.env.test?
role: "data_provider", role: "data_provider",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -119,7 +119,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -131,7 +131,7 @@ unless Rails.env.test?
role: "data_provider", role: "data_provider",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -142,7 +142,7 @@ unless Rails.env.test?
organisation: standalone_no_stock, organisation: standalone_no_stock,
role: "data_coordinator", role: "data_coordinator",
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
end end
@ -153,7 +153,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -165,7 +165,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -177,7 +177,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -189,7 +189,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -218,7 +218,7 @@ unless Rails.env.test?
organisation: org, organisation: org,
role: "data_provider", role: "data_provider",
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
end end
@ -229,7 +229,7 @@ unless Rails.env.test?
role: "data_coordinator", role: "data_coordinator",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
user.is_dpo = true user.is_dpo = true
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
@ -242,7 +242,7 @@ unless Rails.env.test?
role: "support", role: "support",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end
@ -310,7 +310,7 @@ unless Rails.env.test?
role: "data_provider", role: "data_provider",
is_dpo: true, is_dpo: true,
) do |user| ) do |user|
user.password = "password" user.password = ENV["REVIEW_APP_USER_PASSWORD"]
user.confirmed_at = Time.zone.now user.confirmed_at = Time.zone.now
create_data_protection_confirmation(user) create_data_protection_confirmation(user)
end end

Loading…
Cancel
Save