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

[LIBCLOUD-751] Add tests in Point DNS provider for Redirects and Mail… #591

Closed

Conversation

aleGpereira
Copy link
Contributor

…Redirects classes

@asfgit asfgit closed this in 58c4ec9 Oct 3, 2015
@Kami
Copy link
Member

Kami commented Oct 3, 2015

I made a change to the PointDNSException class so it inherits from ProviderError which is intended to be used for that purpose - 0855665. I also updated the constructor signature so it matches the parent one.

For the future reference - this class doesn't really provide additional value over the existing ProviderError one (all the information is already available via ProviderError class) so there is little value in adding / having it.

Besides that the changes look good so I've merged it into trunk.

Thanks.

except (BaseHTTPError, MalformedResponseError):
e = sys.exc_info()[1]
if isinstance(e, MalformedResponseError) and e.body == 'Not found':
raise RecordDoesNotExistError(value="Record doesn't exists",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another "for the future reference" - Ideally those exceptions would be handled on the Response class - see how other classes use set_context method.

@aleGpereira
Copy link
Contributor Author

Yeah, you're right. My intention only was to specify the provider. If for some reason someone needs to catch an exception only for pointdns, can use it. But, yeah. Is just a little thing.

@aleGpereira
Copy link
Contributor Author

Thanks for the merges!

@aleGpereira aleGpereira deleted the LIBCLOUD-751_pointsdnstests branch October 12, 2015 15:24
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