Sha256: 39dfeed0e6b86c10579fc7adcef2e672f076fe4f61f1dc813776e668670aa1b7
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true VCR.configure do |config| config.ignore_localhost = true config.cassette_library_dir = "spec/fixtures/vcr_cassettes" config.hook_into :webmock config.configure_rspec_metadata! config.filter_sensitive_data('<API_KEY>') do |interaction| interaction.request.headers['X-API-KEY']&.first end config.filter_sensitive_data('<PUBLISHABLE_KEY>') do |interaction| interaction.request.headers['X-Publishable-Key']&.first end config.filter_sensitive_data('<BEARER AUTHORIZATION>') do |interaction| interaction.request.headers['Authorization']&.first end config.filter_sensitive_data('<PUBLISHABLE_KEY>') { SolidusBolt::BoltConfiguration.fetch.publishable_key } config.filter_sensitive_data('<DIVISION_PUBLIC_ID>') { SolidusBolt::BoltConfiguration.fetch.division_public_id } config.filter_sensitive_data('<API_KEY>') { SolidusBolt::BoltConfiguration.fetch.api_key } # Let's you set default VCR record mode with VCR_RECORDE_MODE=all for re-recording # episodes. :once is VCR default record_mode = ENV.fetch('VCR_RECORD_MODE', :once).to_sym config.default_cassette_options = { record: record_mode } end
Version data entries
5 entries across 5 versions & 1 rubygems