test/vcr_setup.rb in bonnie_bundler-2.2.5 vs test/vcr_setup.rb in bonnie_bundler-3.0.0

- old
+ new

@@ -3,18 +3,16 @@ # allowing for faster, more predictible web interactions VCR.configure do |c| # This is where the various cassettes will be recorded to c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock - + # To avoid storing plain text VSAC credentials or requiring the VSAC credentials - # be provided at every run of the rake tests, provide the VSAC_USERNAME and VSAC_PASSWORD + # be provided at every run of the rake tests, provide the VSAC_API_KEY # whenever you need to record a cassette that requires valid credentials - ENV['VSAC_USERNAME'] = "vcrtest" unless ENV['VSAC_USERNAME'] - ENV['VSAC_PASSWORD'] = "vcrpass" unless ENV['VSAC_PASSWORD'] + ENV['VSAC_API_KEY'] = "vcrpass" unless ENV['VSAC_API_KEY'] # Ensure plain text passwords do not show up during logging - c.filter_sensitive_data('<VSAC_USERNAME>') {ENV['VSAC_USERNAME']} - c.filter_sensitive_data('<VSAC_PASSWORD>') {URI.escape(ENV['VSAC_PASSWORD'])} + c.filter_sensitive_data('<VSAC_API_KEY>') {URI.escape(ENV['VSAC_API_KEY'])} c.default_cassette_options = {record: :once } end