From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- server/tests/drivers/google/buckets_test.rb | 4 +- server/tests/drivers/google/common.rb | 6 +- .../fixtures/test_0001_can_create_a_new_bucket.yml | 64 ++++++------- ...t_0002_can_create_a_new_blob_with_HTTP_POST.yml | 93 ++++++++++--------- ...test_0003_can_retrieve_named_bucket_details.yml | 61 +++++++------ ...t_0004_can_retrieve_details_of_a_named_blob.yml | 94 +++++++++++--------- .../test_0005_can_retrieve_named_blob_metadata.yml | 94 +++++++++++--------- .../test_0006_can_update_blob_metadata.yml | 76 ++++++++-------- .../google/fixtures/test_0007_can_delete_blob.yml | 58 ++++++------ .../fixtures/test_0008_can_delete_bucket.yml | 58 ++++++------ ...ials_when_using_force_auth_parameter_in_URL.yml | 34 ------- 11 files changed, 332 insertions(+), 310 deletions(-) delete mode 100644 server/tests/drivers/google/fixtures/test_0015_must_re-validate_the_driver_credentials_when_using_force_auth_parameter_in_URL.yml diff --git a/server/tests/drivers/google/buckets_test.rb b/server/tests/drivers/google/buckets_test.rb index b653f80..34cd5eb 100644 --- a/server/tests/drivers/google/buckets_test.rb +++ b/server/tests/drivers/google/buckets_test.rb @@ -74,13 +74,13 @@ describe 'Deltacloud API' do blob.id.must_equal blob_name_google blob.content_length.to_i.must_be :'>',0 blob.last_modified.wont_be_empty - blob.content_type.must_equal 'text/html' + blob.content_type.must_equal 'image/png' blob.user_metadata.keys.wont_be_empty end it 'can retrieve named blob metadata' do blob_metadata = @driver.blob_metadata({:id => blob_name_google, 'bucket' => bucket_name_google}) - {"author"=>"deltacloud", "foo"=>"bar"}.must_equal blob_metadata + {"name1"=>"Author", "value1"=>"deltacloud", "name2"=>"foo", "value2"=>"bar"}.must_equal blob_metadata end it 'can update blob metadata' do diff --git a/server/tests/drivers/google/common.rb b/server/tests/drivers/google/common.rb index f30fd84..218c0d6 100644 --- a/server/tests/drivers/google/common.rb +++ b/server/tests/drivers/google/common.rb @@ -4,8 +4,8 @@ require_relative '../../test_helper' def credentials { - :user => 'GOOGXKQLYTEOZTILUBZ5', - :password => 'M3pvZUy2ivT78ipQ+u1xv6TkY83q9DUnGXkov3tA' + :user => 'GOOG4PBMMHEB2BTY6Q7U', + :password => '7NxqwXy85xmaWB6o1RZ66IxqP+Rmbu8UFiFdpcSw' } end @@ -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 => :none } + c.default_cassette_options = { :record => :new_episodes } end diff --git a/server/tests/drivers/google/fixtures/test_0001_can_create_a_new_bucket.yml b/server/tests/drivers/google/fixtures/test_0001_can_create_a_new_bucket.yml index ded1e4e..c22af77 100644 --- a/server/tests/drivers/google/fixtures/test_0001_can_create_a_new_bucket.yml +++ b/server/tests/drivers/google/fixtures/test_0001_can_create_a_new_bucket.yml @@ -1,36 +1,40 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: put - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/ - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:M4K9MWPskNvOyouLnfg2TrwVW4M= - Date: - - Thu, 28 Jun 2012 13:51:51 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/ + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:31 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:oBN2uaQdWyuXXVBPD9qpBOXIXtI= + response: + status: code: 200 message: - headers: - Content-Length: - - "0" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Fri, 01 Jan 1990 00:00:00 GMT - Content-Type: - - text/html; charset=UTF-8 - Pragma: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:43 GMT + Pragma: - no-cache - Date: - - Thu, 28 Jun 2012 13:51:52 GMT - Cache-Control: + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Cache-Control: - no-cache, no-store, must-revalidate - body: - string: "" + Content-Length: + - '0' + Content-Type: + - text/html; charset=UTF-8 + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:51:52 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:34 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0002_can_create_a_new_blob_with_HTTP_POST.yml b/server/tests/drivers/google/fixtures/test_0002_can_create_a_new_blob_with_HTTP_POST.yml index 780a5e2..06e6aad 100644 --- a/server/tests/drivers/google/fixtures/test_0002_can_create_a_new_blob_with_HTTP_POST.yml +++ b/server/tests/drivers/google/fixtures/test_0002_can_create_a_new_blob_with_HTTP_POST.yml @@ -1,10 +1,11 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: put - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel - body: - string: !binary | + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/testblobk1ds91kVdelmegoogel + body: + encoding: ASCII-8BIT + string: !binary |- iVBORw0KGgoAAAANSUhEUgAAAmwAAAEJCAYAAAApRHtRAAAAGXRFWHRTb2Z0 d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAXxZJREFUeNrsvQmUJNV57/lF RG61d1XvTW800NBAswsEAiRsNkugsS2BZDDyom10xnrHSBoLjeeMOF6O0Jsn @@ -549,45 +550,55 @@ http_interactions: IWT+cV33iJK1+5Sr3Y2wWkItcYicvxBCCCGEkCZwNn/JxtT/5f2NDoWNEEII IaSphA2eljdRNUbXCCGEEEKaU9rc/1+AAQDHmixwNhp67QAAAABJRU5ErkJg gg== - - headers: - Content-Length: + headers: + Content-Length: - 24436 - x-goog-meta-foo: - - bar - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:0yoO46mDSvQuaeJTOjWuFXQC1hc= - x-goog-meta-author: + Content-Type: + - image/png + x-goog-meta-name1: + - Author + x-goog-meta-value1: - deltacloud - Content-Type: - - text/html - Date: - - Thu, 28 Jun 2012 13:51:52 +0000 - response: - status: + x-goog-meta-name2: + - foo + x-goog-meta-value2: + - bar + Date: + - Wed, 26 Sep 2012 11:05:34 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:/tzJsIn6qzEmRCSh4j9gla9hVT0= + response: + status: code: 200 message: - headers: - Content-Length: - - "0" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Fri, 01 Jan 1990 00:00:00 GMT - Content-Type: - - text/html; charset=UTF-8 - Pragma: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + ETag: + - ! '"6051b502c4281855ff32dc3e924fe3b0"' + x-goog-sequence-number: + - '1' + x-goog-generation: + - '1348657487201001' + x-goog-metageneration: + - '1' + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:47 GMT + Pragma: - no-cache - Date: - - Thu, 28 Jun 2012 13:51:55 GMT - ETag: - - "\"6051b502c4281855ff32dc3e924fe3b0\"" - x-goog-sequence-number: - - "1" - Cache-Control: + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Cache-Control: - no-cache, no-store, must-revalidate - body: - string: "" + Content-Length: + - '0' + Content-Type: + - text/html; charset=UTF-8 + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:51:55 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:37 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0003_can_retrieve_named_bucket_details.yml b/server/tests/drivers/google/fixtures/test_0003_can_retrieve_named_bucket_details.yml index da7b10a..cc203df 100644 --- a/server/tests/drivers/google/fixtures/test_0003_can_retrieve_named_bucket_details.yml +++ b/server/tests/drivers/google/fixtures/test_0003_can_retrieve_named_bucket_details.yml @@ -1,34 +1,39 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: get - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/ - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:rGTQT5CB3yfeXWfHMO2PPfRS+nU= - Date: - - Thu, 28 Jun 2012 13:51:55 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/ + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:37 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:KJdF+x7gNJiXVyDGHrNeQ9rnZEo= + response: + status: code: 200 message: - headers: - Content-Length: - - "530" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Thu, 28 Jun 2012 13:51:56 GMT - Content-Type: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Content-Type: - application/xml; charset=UTF-8 - Date: - - Thu, 28 Jun 2012 13:51:56 GMT - Cache-Control: + Content-Length: + - '608' + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:48 GMT + Expires: + - Wed, 26 Sep 2012 11:04:48 GMT + Cache-Control: - private, max-age=0 - body: - string: <?xml version='1.0' encoding='UTF-8'?><ListBucketResult xmlns='http://doc.s3.amazonaws.com/2006-03-01'><Name>testbucki2rpux3wdelmegoogel</Name><Prefix></Prefix><Marker></Marker><IsTruncated>false</IsTruncated><Contents><Key>testblobk1ds91kVdelmegoogel</Key><LastModified>2012-06-28T13:51:55.477Z</LastModified><ETag>"6051b502c4281855ff32dc3e924fe3b0"</ETag><Size>24436</Size><StorageClass>STANDARD</StorageClass><Owner><ID>00b4903a9772c5a80c691066edef0ac07b267f576a2d11bbfc5bf1d2c7a2b8fd</ID></Owner></Contents></ListBucketResult> + body: + encoding: US-ASCII + string: <?xml version='1.0' encoding='UTF-8'?><ListBucketResult xmlns='http://doc.s3.amazonaws.com/2006-03-01'><Name>testbucki2rpux3wdelmegoogel</Name><Prefix></Prefix><Marker></Marker><IsTruncated>false</IsTruncated><Contents><Key>testblobk1ds91kVdelmegoogel</Key><Generation>1348657487201001</Generation><MetaGeneration>1</MetaGeneration><LastModified>2012-09-26T11:04:47.196Z</LastModified><ETag>"6051b502c4281855ff32dc3e924fe3b0"</ETag><Size>24436</Size><Owner><ID>00b4903a97efc6d73ef1dfe92e24dc7a438e44626a28441ff80b24096638b099</ID><DisplayName>Michal + Fojtik</DisplayName></Owner></Contents></ListBucketResult> http_version: - recorded_at: Thu, 28 Jun 2012 13:51:56 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:38 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0004_can_retrieve_details_of_a_named_blob.yml b/server/tests/drivers/google/fixtures/test_0004_can_retrieve_details_of_a_named_blob.yml index 1cef7c2..a2ff8d8 100644 --- a/server/tests/drivers/google/fixtures/test_0004_can_retrieve_details_of_a_named_blob.yml +++ b/server/tests/drivers/google/fixtures/test_0004_can_retrieve_details_of_a_named_blob.yml @@ -1,46 +1,58 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: head - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:7kE7uJL9uDHqE9qOLvC1UYX2bq0= - Date: - - Thu, 28 Jun 2012 13:51:56 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/testblobk1ds91kVdelmegoogel + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:38 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:tPHjHS1GHlNn3Rr3IkcBmoG7AaE= + response: + status: code: 200 message: - headers: - Content-Length: - - "24436" - Accept-Ranges: - - bytes - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - x-goog-meta-foo: - - bar - Expires: - - Thu, 28 Jun 2012 13:51:57 GMT - x-goog-meta-author: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Expires: + - Wed, 26 Sep 2012 11:04:48 GMT + Date: + - Wed, 26 Sep 2012 11:04:48 GMT + Cache-Control: + - private, max-age=0, no-transform + Last-Modified: + - Wed, 26 Sep 2012 11:04:47 GMT + ETag: + - ! '"6051b502c4281855ff32dc3e924fe3b0"' + x-goog-sequence-number: + - '1' + x-goog-generation: + - '1348657487201001' + x-goog-metageneration: + - '1' + x-goog-meta-name1: + - Author + x-goog-meta-value1: - deltacloud - Content-Type: - - text/html - Last-Modified: - - Thu, 28 Jun 2012 13:51:55 GMT - Date: - - Thu, 28 Jun 2012 13:51:57 GMT - Cache-Control: - - private, max-age=0 - ETag: - - "\"6051b502c4281855ff32dc3e924fe3b0\"" - x-goog-sequence-number: - - "1" - body: - string: "" + x-goog-meta-name2: + - foo + x-goog-meta-value2: + - bar + Content-Type: + - image/png + Accept-Ranges: + - bytes + Content-Length: + - '24436' + Vary: + - Origin + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:51:57 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:38 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0005_can_retrieve_named_blob_metadata.yml b/server/tests/drivers/google/fixtures/test_0005_can_retrieve_named_blob_metadata.yml index 5821e49..1f13df1 100644 --- a/server/tests/drivers/google/fixtures/test_0005_can_retrieve_named_blob_metadata.yml +++ b/server/tests/drivers/google/fixtures/test_0005_can_retrieve_named_blob_metadata.yml @@ -1,46 +1,58 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: head - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:VLj31PaC2zrYNSrBqrVWVcFR49I= - Date: - - Thu, 28 Jun 2012 13:51:57 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/testblobk1ds91kVdelmegoogel + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:38 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:tPHjHS1GHlNn3Rr3IkcBmoG7AaE= + response: + status: code: 200 message: - headers: - Content-Length: - - "24436" - Accept-Ranges: - - bytes - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - x-goog-meta-foo: - - bar - Expires: - - Thu, 28 Jun 2012 13:51:58 GMT - x-goog-meta-author: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Expires: + - Wed, 26 Sep 2012 11:04:49 GMT + Date: + - Wed, 26 Sep 2012 11:04:49 GMT + Cache-Control: + - private, max-age=0, no-transform + Last-Modified: + - Wed, 26 Sep 2012 11:04:47 GMT + ETag: + - ! '"6051b502c4281855ff32dc3e924fe3b0"' + x-goog-sequence-number: + - '1' + x-goog-generation: + - '1348657487201001' + x-goog-metageneration: + - '1' + x-goog-meta-name1: + - Author + x-goog-meta-value1: - deltacloud - Content-Type: - - text/html - Last-Modified: - - Thu, 28 Jun 2012 13:51:55 GMT - Date: - - Thu, 28 Jun 2012 13:51:58 GMT - Cache-Control: - - private, max-age=0 - ETag: - - "\"6051b502c4281855ff32dc3e924fe3b0\"" - x-goog-sequence-number: - - "1" - body: - string: "" + x-goog-meta-name2: + - foo + x-goog-meta-value2: + - bar + Content-Type: + - image/png + Accept-Ranges: + - bytes + Content-Length: + - '24436' + Vary: + - Origin + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:51:58 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:39 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0006_can_update_blob_metadata.yml b/server/tests/drivers/google/fixtures/test_0006_can_update_blob_metadata.yml index ae7b73c..1ea4ba5 100644 --- a/server/tests/drivers/google/fixtures/test_0006_can_update_blob_metadata.yml +++ b/server/tests/drivers/google/fixtures/test_0006_can_update_blob_metadata.yml @@ -1,46 +1,50 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: put - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel - body: - string: "" - headers: - x-goog-copy-source: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/testblobk1ds91kVdelmegoogel + body: + encoding: US-ASCII + string: '' + headers: + x-goog-copy-source: - /testbucki2rpux3wdelmegoogel/testblobk1ds91kVdelmegoogel - x-goog-metadata-directive: + x-goog-metadata-directive: - REPLACE - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:PxARsMZjsd/7EloIXv4FqJu+KQA= - x-goog-meta-author: + author: - ApacheDeltacloud - x-goog-meta-oof: + oof: - rab - Date: - - Thu, 28 Jun 2012 13:51:58 +0000 - response: - status: + Date: + - Wed, 26 Sep 2012 11:05:39 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:EZt44tmNIIlcLfYDdOuMI3/hAno= + response: + status: code: 200 message: - headers: - Content-Length: - - "175" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Fri, 01 Jan 1990 00:00:00 GMT - Content-Type: - - text/html; charset=UTF-8 - Pragma: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + ETag: + - ! '"6051b502c4281855ff32dc3e924fe3b0"' + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:49 GMT + Pragma: - no-cache - Date: - - Thu, 28 Jun 2012 13:51:59 GMT - ETag: - - "\"6051b502c4281855ff32dc3e924fe3b0\"" - Cache-Control: + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Cache-Control: - no-cache, no-store, must-revalidate - body: - string: <?xml version='1.0' encoding='UTF-8'?><CopyObjectResult><LastModified>2012-06-28T13:51:55.477Z</LastModified><ETag>"6051b502c4281855ff32dc3e924fe3b0"</ETag></CopyObjectResult> + Content-Length: + - '175' + Content-Type: + - text/html; charset=UTF-8 + body: + encoding: US-ASCII + string: <?xml version='1.0' encoding='UTF-8'?><CopyObjectResult><LastModified>2012-09-26T11:04:47.196Z</LastModified><ETag>"6051b502c4281855ff32dc3e924fe3b0"</ETag></CopyObjectResult> http_version: - recorded_at: Thu, 28 Jun 2012 13:51:59 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:40 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0007_can_delete_blob.yml b/server/tests/drivers/google/fixtures/test_0007_can_delete_blob.yml index 2b73017..9ea2521 100644 --- a/server/tests/drivers/google/fixtures/test_0007_can_delete_blob.yml +++ b/server/tests/drivers/google/fixtures/test_0007_can_delete_blob.yml @@ -1,32 +1,36 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: delete - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/testblobk1ds91kVdelmegoogel - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:pBRSCxxl46XfP4llbg6Jedh9wXY= - Date: - - Thu, 28 Jun 2012 13:51:59 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/testblobk1ds91kVdelmegoogel + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:40 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:66vHQSybhq3qk5Cx/ENPr0apE+M= + response: + status: code: 204 message: - headers: - Content-Length: - - "0" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Thu, 28 Jun 2012 13:52:00 GMT - Date: - - Thu, 28 Jun 2012 13:52:00 GMT - Cache-Control: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:50 GMT + Expires: + - Wed, 26 Sep 2012 11:04:50 GMT + Cache-Control: - private, max-age=0 - body: - string: "" + Content-Length: + - '0' + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:52:00 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:40 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0008_can_delete_bucket.yml b/server/tests/drivers/google/fixtures/test_0008_can_delete_bucket.yml index 42bafd1..e7b865c 100644 --- a/server/tests/drivers/google/fixtures/test_0008_can_delete_bucket.yml +++ b/server/tests/drivers/google/fixtures/test_0008_can_delete_bucket.yml @@ -1,32 +1,36 @@ ---- -http_interactions: -- request: +--- +http_interactions: +- request: method: delete - uri: https://testbucki2rpux3wdelmegoogel.commondatastorage.googleapis.com/ - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:fP5JoD+ItmgUWZ9uXYkiKn6SoGk= - Date: - - Thu, 28 Jun 2012 13:52:00 +0000 - response: - status: + uri: https://testbucki2rpux3wdelmegoogel.storage.googleapis.com/ + body: + encoding: US-ASCII + string: '' + headers: + Date: + - Wed, 26 Sep 2012 11:05:40 +0000 + Authorization: + - GOOG1 GOOG4PBMMHEB2BTY6Q7U:gMhA7rEQZj3tz8ZWdoSQ52ItUGQ= + response: + status: code: 204 message: - headers: - Content-Length: - - "0" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Thu, 28 Jun 2012 13:52:02 GMT - Date: - - Thu, 28 Jun 2012 13:52:02 GMT - Cache-Control: + headers: + Server: + - HTTP Upload Server Built on Sep 5 2012 17:14:59 (1346890499) + Vary: + - Origin + Date: + - Wed, 26 Sep 2012 11:04:52 GMT + Expires: + - Wed, 26 Sep 2012 11:04:52 GMT + Cache-Control: - private, max-age=0 - body: - string: "" + Content-Length: + - '0' + body: + encoding: US-ASCII + string: '' http_version: - recorded_at: Thu, 28 Jun 2012 13:52:02 GMT -recorded_with: VCR 2.2.2 + recorded_at: Wed, 26 Sep 2012 11:05:43 GMT +recorded_with: VCR 2.2.5 diff --git a/server/tests/drivers/google/fixtures/test_0015_must_re-validate_the_driver_credentials_when_using_force_auth_parameter_in_URL.yml b/server/tests/drivers/google/fixtures/test_0015_must_re-validate_the_driver_credentials_when_using_force_auth_parameter_in_URL.yml deleted file mode 100644 index 5eb56b1..0000000 --- a/server/tests/drivers/google/fixtures/test_0015_must_re-validate_the_driver_credentials_when_using_force_auth_parameter_in_URL.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://commondatastorage.googleapis.com/ - body: - string: "" - headers: - Authorization: - - GOOG1 GOOGXKQLYTEOZTILUBZ5:MTx1ZUAYGF2chkSV97+H04qAFMo= - Date: - - Thu, 28 Jun 2012 13:52:02 +0000 - response: - status: - code: 200 - message: - headers: - Content-Length: - - "437" - Server: - - HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129) - Expires: - - Thu, 28 Jun 2012 13:52:03 GMT - Content-Type: - - application/xml; charset=UTF-8 - Date: - - Thu, 28 Jun 2012 13:52:03 GMT - Cache-Control: - - private, max-age=0 - body: - string: <?xml version='1.0' encoding='UTF-8'?><ListAllMyBucketsResult xmlns='http://doc.s3.amazonaws.com/2006-03-01'><Owner><ID>00b4903a97866666a0d78ccdcf31c5015cac5d76415d1d23aa190f3c14975a1f</ID></Owner><Buckets><Bucket><Name>marios_bucket</Name><CreationDate>2011-08-16T11:05:02.262Z</CreationDate></Bucket><Bucket><Name>usmariosnewbucket</Name><CreationDate>2011-09-19T12:34:31.218Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult> - http_version: - recorded_at: Thu, 28 Jun 2012 13:52:03 GMT -recorded_with: VCR 2.2.2 -- 1.7.10.2
