Browse Source

Remove seed user

pull/2637/head
Kat 2 years ago
parent
commit
9ddb26d0dd
  1. 12
      db/seeds.rb
  2. 2
      lib/tasks/performance_test.sh

12
db/seeds.rb

@ -235,18 +235,6 @@ unless Rails.env.test?
create_data_protection_confirmation(user)
end
User.find_or_create_by!(
name: "Coordinator",
email: "performance_testing_user@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",

2
lib/tasks/performance_test.sh

@ -114,7 +114,7 @@ if (( $(echo "$time_per_request_all > 500" | bc -l) )); then
fi
if (( $(echo "$requests_per_second < 3" | bc -l) )); then
echo "Update logs: Performance test failed - Requests per second is less than 5: $requests_per_second"
echo "Update logs: Performance test failed - Requests per second is less than 3: $requests_per_second"
exit 1
fi

Loading…
Cancel
Save