2021-03-04 22:52:19 +01:00
|
|
|
VCR.configure do |c|
|
|
|
|
c.ignore_localhost = true
|
|
|
|
c.hook_into :webmock
|
|
|
|
c.cassette_library_dir = 'spec/fixtures/cassettes'
|
|
|
|
c.configure_rspec_metadata!
|
|
|
|
c.ignore_hosts 'test.host', 'chromedriver.storage.googleapis.com'
|
2024-06-12 16:08:05 +02:00
|
|
|
|
|
|
|
c.filter_sensitive_data('redacted') do |interaction|
|
|
|
|
auth = interaction.request.headers['Authorization']&.first
|
|
|
|
next if auth.nil?
|
|
|
|
|
|
|
|
if (match = auth.match(/^Bearer\s+([^,\s]+)/))
|
|
|
|
match.captures.first
|
|
|
|
end
|
|
|
|
end
|
2021-03-04 22:52:19 +01:00
|
|
|
end
|