mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Re-record fixture
And document how to run it.
This commit is contained in:
@@ -16,6 +16,10 @@ STRIPE_PUBLIC_TEST_API_KEY="bogus_stripe_publishable_key"
|
||||
|
||||
SITE_URL="test.host"
|
||||
|
||||
# OIDC Settings for DFC authentication
|
||||
# Find secrets in BitWarden.
|
||||
# To get a refresh token: log into the OIDC provider, connect your OFN user to it at /admin/oidc_settings, then copy the token from the database:
|
||||
# ./bin/rails runner 'puts "OPENID_REFRESH_TOKEN=\"#{OidcAccount.last.refresh_token}\""'
|
||||
OPENID_APP_ID="test-provider"
|
||||
OPENID_APP_SECRET="dummy-openid-app-secret-token"
|
||||
OPENID_REFRESH_TOKEN="dummy-refresh-token"
|
||||
|
||||
@@ -6,6 +6,7 @@ FactoryBot.define do
|
||||
uid { user&.email || generate(:random_email) }
|
||||
|
||||
# This is a live test account authenticated via Les Communes.
|
||||
# See .env.test for tips on connecting the account for recording VCR cassettes.
|
||||
factory :testdfc_account do
|
||||
uid { "testdfc@protonmail.com" }
|
||||
refresh_token { ENV.fetch("OPENID_REFRESH_TOKEN") }
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user