Sha256: 4cdc025f1b756ce0ad527170825a35f338ded2d2e0051bf6129eb8b16d2589cc

Contents?: true

Size: 724 Bytes

Versions: 6

Compression:

Stored size: 724 Bytes

Contents

require 'vcr'

require_relative '../../test_helper.rb'

def credentials
  Deltacloud::Test::config.credentials("gogrid")
end

def fixed_image_id
  # A fixed image we use throughout the tests; if GoGrid ever removes it
  # we need to change it here
  "9928"
end

VCR.configure do |c|
  # NOTE: Empty this directory before re-recording
  c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures')
  c.hook_into :webmock
  matcher = VCR.request_matchers.uri_without_param("api_key", "sig")
  c.register_request_matcher(:gogrid_matcher, &matcher)
  # Set this to :new_episodes to rerecord
  c.default_cassette_options[:record] =:none
  c.default_cassette_options[:match_requests_on] = [:method, :gogrid_matcher]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
deltacloud-core-1.1.2 tests/drivers/gogrid/common.rb
deltacloud-core-1.1.1 tests/drivers/gogrid/common.rb
deltacloud-core-1.1.0 tests/drivers/gogrid/common.rb
deltacloud-core-1.0.5 tests/drivers/gogrid/common.rb
deltacloud-core-1.0.4 tests/drivers/gogrid/common.rb
deltacloud-core-1.0.3 tests/drivers/gogrid/common.rb