mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Update spec/support/vcr_setup.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -10,11 +10,11 @@ VCR.configure do |config|
|
||||
config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
|
||||
|
||||
# Filter sensitive environment variables
|
||||
[
|
||||
'STRIPE_SECRET_TEST_API_KEY',
|
||||
'STRIPE_CUSTOMER',
|
||||
'STRIPE_ACCOUNT',
|
||||
'STRIPE_CLIENT_ID',
|
||||
%w[
|
||||
STRIPE_SECRET_TEST_API_KEY
|
||||
STRIPE_CUSTOMER
|
||||
STRIPE_ACCOUNT
|
||||
STRIPE_CLIENT_ID
|
||||
].each do |env_var|
|
||||
config.filter_sensitive_data("<HIDDEN-#{env_var}>") { ENV.fetch(env_var, nil) }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user