Browse Source

Try hardcoded test password

CLDC-3611-performance-testing
Kat 4 months ago
parent
commit
43194f0ee5
  1. 4
      .github/workflows/review_pipeline.yml
  2. 12
      db/seeds.rb

4
.github/workflows/review_pipeline.yml

@ -64,8 +64,8 @@ jobs:
ab -n 50 -c 50 -C "$COOKIES" 'https://review.submit-social-housing-data.levellingup.gov.uk/${{ github.event.pull_request.number }}/lettings-logs'
env:
PERFORMANCE_TESTING_USER_EMAIL: coordinator@example.com
PERFORMANCE_TESTING_USER_PASSWORD: ${{ secrets.REVIEW_APP_USER_PASSWORD }}
PERFORMANCE_TESTING_USER_EMAIL: coordinator1@example.com
PERFORMANCE_TESTING_USER_PASSWORD: password
comment:
name: Add link to PR

12
db/seeds.rb

@ -235,6 +235,18 @@ unless Rails.env.test?
create_data_protection_confirmation(user)
end
User.find_or_create_by!(
name: "Coordinator",
email: "coordinator1@example.com",
organisation: org,
role: "data_coordinator",
is_dpo: true,
) do |user|
user.password = "password"
user.confirmed_at = Time.zone.now
user.is_dpo = true
end
support_user = User.find_or_create_by!(
name: "Support",
email: "support@example.com",

Loading…
Cancel
Save