Sha256: b2c29a20800f92a5fa57280ee4c61d3da6853981b4a8d8f3bd3610651e21817c

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

require 'vcr'
require 'pp'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/vcr/cassettes'
  c.hook_into :faraday
  c.configure_rspec_metadata!

  if ENV['RECORDING']
    c.filter_sensitive_data('client_id_XXXXXXXXXXXXXXXXXXX') { ENV['DIGITAL_OCEAN_CLIENT_ID'] }
    c.filter_sensitive_data('api_key_YYYYYYYYYYYYYYYYYYYYY') { ENV['DIGITAL_OCEAN_API_KEY']   }
  end

  # modern DigitalOcean API frontend doesn't send cookie_set header

  c.filter_sensitive_data('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') do |http_interaction|
    http_interaction.response.headers['etag'].first
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
digital_ocean-1.5.0 spec/support/vcr.rb
digital_ocean-1.4.0 spec/support/vcr.rb
digital_ocean-1.3.0 spec/support/vcr.rb
digital_ocean-1.2.0 spec/support/vcr.rb