Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle empty bodies in GET calls to cloud_dns #280

Merged
merged 1 commit into from
Jan 22, 2014

Conversation

omgjlk
Copy link
Contributor

@omgjlk omgjlk commented Jan 22, 2014

Occasionally cloud dns API will return an empty body on a GET call.
Retrying immediately usually resolves this, but in the case that doesn't
work raise a specific exception.

cloud dns manager and client both had their own GET calls, so both had
to be replaced.

Some tests were mocking an empty body for get calls, which started
throwing exceptions with this new code, so those tests had to be
adjusted to put in something for the body, even if it is not used.

Occasionally cloud dns API will return an empty body on a GET call.
Retrying immediately usually resolves this, but in the case that doesn't
work raise a specific exception.

cloud dns manager and client both had their own GET calls, so both had
to be replaced.

Some tests were mocking an empty body for get calls, which started
throwing exceptions with this new code, so those tests had to be
adjusted to put in something for the body, even if it is not used.
@EdLeafe EdLeafe merged commit 09047a7 into pycontribs:working Jan 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants