mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Avoid collision of test secrets
A test was failing locally because I have the OpenID client secret set in my environment. And the dummy value was the same as another test key. So it got replaced with the wrong value.
This commit is contained in:
@@ -16,7 +16,7 @@ STRIPE_PUBLIC_TEST_API_KEY="bogus_stripe_publishable_key"
|
||||
SITE_URL="test.host"
|
||||
|
||||
OPENID_APP_ID="test-provider"
|
||||
OPENID_APP_SECRET="12345"
|
||||
OPENID_APP_SECRET="dummy-openid-app-secret-token"
|
||||
OPENID_REFRESH_TOKEN="dummy-refresh-token"
|
||||
|
||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY="test_primary_key"
|
||||
|
||||
@@ -6,7 +6,7 @@ http_interactions:
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"id":"c9f0e82a-f200-4c1a-9aa2-3a3a63c7acba","at":"2024-04-05 15:30:57
|
||||
+1100","event":"connect-app","data":{"@id":"http://test.host/api/dfc/enterprises/3","access_token":"<HIDDEN-OPENID_APP_SECRET>"}}'
|
||||
+1100","event":"connect-app","data":{"@id":"http://test.host/api/dfc/enterprises/3","access_token":"<HIDDEN-OPENID-TOKEN>"}}'
|
||||
headers:
|
||||
User-Agent:
|
||||
- openfoodnetwork_webhook/1.0
|
||||
@@ -39,6 +39,6 @@ http_interactions:
|
||||
- 1; mode=block
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '{"link":"https://example.net/update","destroy":"https://n8n.openfoodnetwork.org.uk/webhook/remove-enterprise?id=recjBXXXXXXXXXXXX&key=<HIDDEN-OPENID_APP_SECRET>"}'
|
||||
string: '{"link":"https://example.net/update","destroy":"https://n8n.openfoodnetwork.org.uk/webhook/remove-enterprise?id=recjBXXXXXXXXXXXX&key=12345"}'
|
||||
recorded_at: Fri, 05 Apr 2024 04:30:58 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
Reference in New Issue
Block a user