Skip to content

Instantly share code, notes, and snippets.

@ruanwz
Created September 12, 2010 17:56
Show Gist options
  • Save ruanwz/576288 to your computer and use it in GitHub Desktop.
Save ruanwz/576288 to your computer and use it in GitHub Desktop.
The following lines are the output of following command:
cucumber features > ~/gstore_features_output.txt
Feature: object
As a google storeage api user
I want to create objects in a bucket
So that I can perform other operation on the objects
Scenario: create an object in an empty bucket # features/object.feature:6
Given the bucket name according the current time # features/step_definitions/gstore.rb:1
Given the object name according the current time # features/step_definitions/gstore.rb:5
***** METHOD: Net::HTTP::Put
***** HOST: 863208290_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863208290_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:36 -0000", :Host=>"863208290_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: PUT
text/plain
Sun, 12 Sep 2010 17:55:36 -0000
+++++ CANONICAL_RESOURCE: /863208290_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:8mqTr4oAPrDb1GDVtb4yDt9JFU0=
When I create the bucket # features/step_definitions/gstore.rb:10
***** METHOD: Net::HTTP::Put
***** HOST: 863208290_bucket.commondatastorage.googleapis.com
***** PATH: /863209337_object
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {:data=>"test"}
+++++ BUCKET: 863208290_bucket
+++++ HEADERS: {:"Content-Length"=>4, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:37 -0000", :Host=>"863208290_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: PUT
text/plain
Sun, 12 Sep 2010 17:55:37 -0000
+++++ CANONICAL_RESOURCE: /863208290_bucket/863209337_object
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:dEQNjaD5ScQEI2+IcBtgcTjqPFU=
And I put the object # features/step_definitions/gstore.rb:62
***** METHOD: Net::HTTP::Get
***** HOST: 863208290_bucket.commondatastorage.googleapis.com
***** PATH: /863209337_object
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863208290_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:38 -0000", :Host=>"863208290_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:38 -0000
+++++ CANONICAL_RESOURCE: /863208290_bucket/863209337_object
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:0LIdJ1mVnjsNX09OgORl7FeTiPc=
Then I can get the object # features/step_definitions/gstore.rb:66
***** METHOD: Net::HTTP::Delete
***** HOST: 863208290_bucket.commondatastorage.googleapis.com
***** PATH: /863209337_object
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863208290_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:39 -0000", :Host=>"863208290_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: DELETE
text/plain
Sun, 12 Sep 2010 17:55:39 -0000
+++++ CANONICAL_RESOURCE: /863208290_bucket/863209337_object
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:EhNvAiJn3eaMVDPqmQ2UtwErhbQ=
When I delete the object # features/step_definitions/gstore.rb:42
***** METHOD: Net::HTTP::Delete
***** HOST: 863208290_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863208290_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:41 -0000", :Host=>"863208290_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: DELETE
text/plain
Sun, 12 Sep 2010 17:55:41 -0000
+++++ CANONICAL_RESOURCE: /863208290_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:92UJQkxLJ/Sovk+64nGWBvaUuiM=
When I delete the bucket # features/step_definitions/gstore.rb:39
***** METHOD: Net::HTTP::Get
***** HOST: commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET:
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:42 -0000", :Host=>"commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:42 -0000
+++++ CANONICAL_RESOURCE: /
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:jrHImh2lSOM7RLMJV8XaXUhUd/A=
Then I can list the bucket # features/step_definitions/gstore.rb:23
And the list doesn't include the bucket # features/step_definitions/gstore.rb:47
Feature: bucket
As a google storeage api user
I want to create a bucket
So that I can perform other operation on the bucket
Scenario: create, list and delete an empty bucket # features/create_bucket.feature:6
Given the bucket name according the current time # features/step_definitions/gstore.rb:1
***** METHOD: Net::HTTP::Put
***** HOST: 863271329_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863271329_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:43 -0000", :Host=>"863271329_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: PUT
text/plain
Sun, 12 Sep 2010 17:55:43 -0000
+++++ CANONICAL_RESOURCE: /863271329_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:CgOfAlzQjoYYkmsHJaUsBQHDa5M=
When I create the bucket # features/step_definitions/gstore.rb:10
***** METHOD: Net::HTTP::Get
***** HOST: commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET:
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:44 -0000", :Host=>"commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:44 -0000
+++++ CANONICAL_RESOURCE: /
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:M4t128otlVPJlyVoDdqeJdS7Hq8=
Then I can list the bucket # features/step_definitions/gstore.rb:23
And the list include the bucket # features/step_definitions/gstore.rb:35
***** METHOD: Net::HTTP::Delete
***** HOST: 863271329_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863271329_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:45 -0000", :Host=>"863271329_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: DELETE
text/plain
Sun, 12 Sep 2010 17:55:45 -0000
+++++ CANONICAL_RESOURCE: /863271329_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:LC0uw4XiT70LU6y/F60drGCJmsE=
When I delete the bucket # features/step_definitions/gstore.rb:39
***** METHOD: Net::HTTP::Get
***** HOST: commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET:
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:46 -0000", :Host=>"commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:46 -0000
+++++ CANONICAL_RESOURCE: /
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:s/lcfuMDUDRw7bQAStAXqyKQtF8=
Then I can list the bucket # features/step_definitions/gstore.rb:23
And the list doesn't include the bucket # features/step_definitions/gstore.rb:47
Scenario: create a bucket with predefined acl # features/create_bucket.feature:15
Given the bucket name according the current time # features/step_definitions/gstore.rb:1
***** METHOD: Net::HTTP::Put
***** HOST: 863345442_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {"x-goog-acl"=>"public-read"}
***** OPTIONS: {}
+++++ BUCKET: 863345442_bucket
+++++ HEADERS: {:"Content-Length"=>0, "x-goog-acl"=>"public-read", :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:47 -0000", :Host=>"863345442_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: PUT
text/plain
Sun, 12 Sep 2010 17:55:47 -0000
x-goog-acl:public-read
+++++ CANONICAL_RESOURCE: /863345442_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:lXTvjcqvdXZuMPSKboNNvH/I/VM=
When I create the bucket with public acl # features/step_definitions/gstore.rb:16
***** METHOD: Net::HTTP::Get
***** HOST: commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET:
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:48 -0000", :Host=>"commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:48 -0000
+++++ CANONICAL_RESOURCE: /
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:U9ZF8tlkcYhcx4V7HUQGiwooaYU=
Then I can list the bucket # features/step_definitions/gstore.rb:23
And the list include the bucket # features/step_definitions/gstore.rb:35
***** METHOD: Net::HTTP::Get
***** HOST: 863345442_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {:acl=>true}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863345442_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:49 -0000", :Host=>"863345442_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:49 -0000
+++++ CANONICAL_RESOURCE: /863345442_bucket/?acl
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:zUw6OWr3P7VaYWvfTgk1oyNspbA=
Then I get the public acl of bucket # features/step_definitions/gstore.rb:51
***** METHOD: Net::HTTP::Delete
***** HOST: 863345442_bucket.commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET: 863345442_bucket
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:50 -0000", :Host=>"863345442_bucket.commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: DELETE
text/plain
Sun, 12 Sep 2010 17:55:50 -0000
+++++ CANONICAL_RESOURCE: /863345442_bucket/
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:uqPv0386XyRDp8fPh/JYf8tcxtY=
When I delete the bucket # features/step_definitions/gstore.rb:39
***** METHOD: Net::HTTP::Get
***** HOST: commondatastorage.googleapis.com
***** PATH: /
***** PARAMS: {}
***** HEADERS: {}
***** OPTIONS: {}
+++++ BUCKET:
+++++ HEADERS: {:"Content-Length"=>0, :"Content-Type"=>"text/plain", :Date=>"Sun, 12 Sep 2010 17:55:51 -0000", :Host=>"commondatastorage.googleapis.com"}
+++++ CANONICAL_HEADERS: GET
text/plain
Sun, 12 Sep 2010 17:55:51 -0000
+++++ CANONICAL_RESOURCE: /
+++++ AUTHORIZATION: GOOG1 GOOGWYT4KR5NYZA7J72V:GYR+AMyNzm0ac40ldsYKmf6kUSM=
Then I can list the bucket # features/step_definitions/gstore.rb:23
And the list doesn't include the bucket # features/step_definitions/gstore.rb:47
3 scenarios (3 passed)
24 steps (24 passed)
0m16.328s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment