deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [2/2] git commit: tests/drivers: set rerecord mode base on env. var. VCR_RECORD
Date Fri, 15 Mar 2013 14:27:57 GMT
Updated Branches:
  refs/heads/master 2db5bd92a -> a392bd905


tests/drivers: set rerecord mode base on env. var. VCR_RECORD

This patch updates the driver white box tests to trigger re-recording
based on the environment variable VCR_RECORD.
TrackedAt: http://tracker.deltacloud.org/patch/ddfec85749e851f1d772cf5dc4e433bc64f77888


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a392bd90
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a392bd90
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a392bd90

Branch: refs/heads/master
Commit: a392bd905a723d9e40c4aa71a7e9918b4242a16b
Parents: 79d9dd2
Author: Joe VLcek <jvlcek@redhat.com>
Authored: Wed Mar 13 17:07:16 2013 -0400
Committer: marios <marios@redhat.com>
Committed: Fri Mar 15 16:21:48 2013 +0200

----------------------------------------------------------------------
 server/tests/drivers/ec2/common.rb       |    5 ++++-
 server/tests/drivers/fgcp/common.rb      |    3 +--
 server/tests/drivers/gogrid/common.rb    |    3 +--
 server/tests/drivers/google/common.rb    |    2 +-
 server/tests/drivers/openstack/common.rb |    3 +--
 5 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a392bd90/server/tests/drivers/ec2/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/ec2/common.rb b/server/tests/drivers/ec2/common.rb
index 7d63dc9..608569f 100644
--- a/server/tests/drivers/ec2/common.rb
+++ b/server/tests/drivers/ec2/common.rb
@@ -25,7 +25,10 @@ VCR.configure do |c|
   matcher = VCR.request_matchers.uri_without_param("AWSAccessKeyId",
                                                    "Signature", "Timestamp")
   c.register_request_matcher(:ec2_matcher, &matcher)
-  c.default_cassette_options = { :record => :none, :match_requests_on => [:method,
:ec2_matcher] }
+  c.default_cassette_options = {
+    :record => vcr_record_mode,
+    :match_requests_on => [:method, :ec2_matcher]
+  }
 end
 
 # Setup resources we need for the tests

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a392bd90/server/tests/drivers/fgcp/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/fgcp/common.rb b/server/tests/drivers/fgcp/common.rb
index 930f1b3..3e5e128 100644
--- a/server/tests/drivers/fgcp/common.rb
+++ b/server/tests/drivers/fgcp/common.rb
@@ -23,8 +23,7 @@ VCR.configure do |c|
   c.cassette_library_dir = File.join(File.dirname(__FILE__), 'fixtures')
   c.hook_into :webmock
   c.default_cassette_options = {
-    :record => :new_episodes,
-#    :record => :none,
+    :record => vcr_record_mode,
     :match_requests_on => [:method,
     VCR.request_matchers.uri_without_param(:Signature, :AccessKeyId)]
   }

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a392bd90/server/tests/drivers/gogrid/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/gogrid/common.rb b/server/tests/drivers/gogrid/common.rb
index affc1a5..22610f8 100644
--- a/server/tests/drivers/gogrid/common.rb
+++ b/server/tests/drivers/gogrid/common.rb
@@ -18,7 +18,6 @@ VCR.configure do |c|
   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[:record] = vcr_record_mode
   c.default_cassette_options[:match_requests_on] = [:method, :gogrid_matcher]
 end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a392bd90/server/tests/drivers/google/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/google/common.rb b/server/tests/drivers/google/common.rb
index 218c0d6..6a4cd2e 100644
--- a/server/tests/drivers/google/common.rb
+++ b/server/tests/drivers/google/common.rb
@@ -16,5 +16,5 @@ end
 VCR.configure do |c|
   c.cassette_library_dir = "#{File.dirname(__FILE__)}/fixtures/"
   c.hook_into :excon
-  c.default_cassette_options = { :record => :new_episodes }
+  c.default_cassette_options = { :record => vcr_record_mode }
 end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a392bd90/server/tests/drivers/openstack/common.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/common.rb b/server/tests/drivers/openstack/common.rb
index ad587e8..09be3ed 100644
--- a/server/tests/drivers/openstack/common.rb
+++ b/server/tests/drivers/openstack/common.rb
@@ -21,6 +21,5 @@ 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
-  # Set this to :new_episodes when you want to 're-record'
-  c.default_cassette_options = { :record => :none }
+  c.default_cassette_options = { :record => vcr_record_mode }
 end


Mime
View raw message