Skip to content

Instantly share code, notes, and snippets.

@sanemat
Created September 29, 2012 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanemat/3803691 to your computer and use it in GitHub Desktop.
Save sanemat/3803691 to your computer and use it in GitHub Desktop.
google-api-ruby-client failed tests
$ be rake spec/Users/sane/.rbenv/versions/1.9.3-p194/bin/ruby -S rspec spec/google/api_client/batch_spec.rb spec/google/api_client/discovery_spec.rb spec/google/api_client/media_spec.rb spec/google/api_client/result_spec.rb spec/google/api_client/service_account_spec.rb spec/google/api_client_spec.rb --color --format documentationGoogle::APIClient::BatchRequest should raise an error if making an empty batch request with the discovery API with two valid requests should execute both when using a global callback should execute both when using individual callbacks should raise an error if using the same call ID more than once with a valid request and an invalid one should execute both when using a global callback
should execute both when using individual callbacks
with the calendar API
with two valid requests
should convert to a correct HTTP request
Google::APIClient should raise a type error for bogus authorization
should not be able to retrieve the discovery document for a bogus API
should raise an error for bogus services should raise an error for bogus services
should raise an error for bogus methods
should not return a preferred version for bogus service names with the prediction API
should correctly determine the discovery URI
should correctly determine the discovery URI if :user_ip is set
should correctly determine the discovery URI if :key is set should correctly determine the discovery URI if both are set should correctly generate API objects
should discover methods
should define the origin API in discovered methods
should not find methods that are not in the discovery document
should raise an error for bogus methods
should raise an error for bogus methods
should correctly determine the preferred version
should return a batch path
should generate valid requests
should generate valid requests when repeated parameters are passed (FAILED - 1)
should generate requests against the correct URIs
should generate requests against the correct URIs
should allow modification to the base URIs for testing purposes
should generate OAuth 1 requests
should generate OAuth 2 requests
should not be able to execute improperly authorized requests
should not be able to execute improperly authorized requests
should not be able to execute improperly authorized requests
should not be able to execute improperly authorized requests
should correctly handle unnamed parameters
with the plus API
should correctly determine the discovery URI
should find APIs that are in the discovery document
should find methods that are in the discovery document
should define the origin API in discovered methods
should not find methods that are not in the discovery document
should generate requests against the correct URIs
should correctly validate parameters
should correctly validate parameters
with the latitude API
should correctly determine the discovery URI
should find APIs that are in the discovery document
should return a batch path
should find methods that are in the discovery document
should define the origin API in discovered methods
should not find methods that are not in the discovery document
should generate requests against the correct URIs
should generate requests against the correct URIs
should not be able to execute requests without authorization
with the moderator API
should correctly determine the discovery URI
should find APIs that are in the discovery document
should find methods that are in the discovery document
should define the origin API in discovered methods
should not find methods that are not in the discovery document
should return a batch path
should generate requests against the correct URIs
should generate requests against the correct URIs
should not be able to execute requests without authorization
with the adsense API
should correctly determine the discovery URI
should find APIs that are in the discovery document
should return a batch path
should find methods that are in the discovery document
should not find methods that are not in the discovery document
should generate requests against the correct URIs
should generate requests against the correct URIs
should not be able to execute requests without authorization
should fail when validating missing required parameters
should succeed when validating parameters in a correct call
should fail when validating parameters with invalid values
should succeed when validating repeated parameters in a correct call
should fail when validating incorrect repeated parameters
with the Drive API
should include media upload info methods
should include accepted media types
should have an upload path
should have a max file size
Google::APIClient::UploadIO
should reject invalid file paths
with a file
should report the correct file length
should have a mime type
with StringIO
should report the correct file length
should have a mime type
Google::APIClient::ResumableUpload
should consider 20x status as complete
should consider 30x status as incomplete
should consider 40x status as fatal
should detect changes to location
should resume from the saved range reported by the server
should resync the offset after 5xx errors
Google::APIClient::Result
with the plus API
with a next page token
should indicate a successful response
should return the correct next page token
should escape the next page token when calling next_page (FAILED - 2)
should return content type correctly
should return the result data correctly
without a next page token
should not return a next page token
should return content type correctly
should return the result data correctly
with JSON error response
should return error status correctly
should return the correct error message
Google::APIClient::JWTAsserter
should generate valid JWTs
should send valid access token request
Google::APIClient
should make its version number available
should default to OAuth 2
it should behave like configurable user agent
should allow the user agent to be modified
should allow the user agent to be set to nil
should not allow the user agent to be used with bogus values
should transmit a User-Agent header when sending requests
configured for OAuth 1
should use the default OAuth1 client configuration
it should behave like configurable user agent
should allow the user agent to be modified
should allow the user agent to be set to nil
should not allow the user agent to be used with bogus values
should transmit a User-Agent header when sending requests
configured for OAuth 2
it should behave like configurable user agent
should allow the user agent to be modified
should allow the user agent to be set to nil
should not allow the user agent to be used with bogus values
should transmit a User-Agent header when sending requests
when executing requests
should use default authorization
should use request scoped authorization when provided
Failures:
1) Google::APIClient with the prediction API should generate valid requests when repeated parameters are passed
Failure/Error: 'https://www.googleapis.com/prediction/v1.2/training?data=1&data=2'
expected: "https://www.googleapis.com/prediction/v1.2/training?data=1&data=2"
got: "https://www.googleapis.com/prediction/v1.2/training?data%5B%5D=1&data%5B%5D=2" (using ===)
# ./spec/google/api_client/discovery_spec.rb:204:in `block (3 levels) in <top (required)>'
2) Google::APIClient::Result with the plus API with a next page token should escape the next page token when calling next_page
Failure/Error: url.to_s.should include('pageToken=NEXT%2BPAGE%2BTOKEN')
expected "https://www.googleapis.com/plus/v1/people/me/activities/public?maxResults=20&pageToken=NEXT+PAGE+TOKEN" to include "pageToken=NEXT%2BPAGE%2BTOKEN"
# ./spec/google/api_client/result_spec.rb:85:in `block (4 levels) in <top (required)>'
Finished in 7.54 seconds
120 examples, 2 failures
Failed examples:
rspec ./spec/google/api_client/discovery_spec.rb:197 # Google::APIClient with the prediction API should generate valid requests when repeated parameters are passed
rspec ./spec/google/api_client/result_spec.rb:80 # Google::APIClient::Result with the plus API with a next page token should escape the next page token when calling next_page
rake aborted!
/Users/sane/.rbenv/versions/1.9.3-p194/bin/ruby -S rspec spec/google/api_client/batch_spec.rb spec/google/api_client/discovery_spec.rb spec/google/api_client/media_spec.rb spec/google/api_client/result_spec.rb spec/google/api_client/service_account_spec.rb spec/google/api_client_spec.rb --color --format documentation failed
Tasks: TOP => spec => spec:all
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment