From 43194f0ee5388157e0d308a84c1244d63ea9b16b Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 5 Sep 2024 12:11:45 +0100 Subject: [PATCH] Try hardcoded test password --- .github/workflows/review_pipeline.yml | 4 ++-- db/seeds.rb | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index b6a59c0cd..af39f90b1 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.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 diff --git a/db/seeds.rb b/db/seeds.rb index b58f7e0a8..c358eb85d 100644 --- a/db/seeds.rb +++ b/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",