-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Improve exception processing for Route53 with invalid type #2284
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2284 +/- ##
===========================================
+ Coverage 93.58% 94.39% +0.81%
===========================================
Files 90 97 +7
Lines 6124 7086 +962
Branches 1260 1434 +174
===========================================
+ Hits 5731 6689 +958
+ Misses 183 181 -2
- Partials 210 216 +6
Continue to review full report at Codecov.
|
Could you please add more unit test cases to increase the coverage percentage in these files:
|
if self.domain.get("Route53") is not None: | ||
route53 = self.domain.get("Route53") | ||
if route53.get("HostedZoneId") is None and route53.get("HostedZoneName") is None: | ||
if isinstance(route53, dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we can just add if not isintance(route53, dict): raise ...
so that we don't need to change any of below?
8956ba2
to
47f10dc
Compare
Issue #, if available:
Description of changes:
Description of how you validated changes:
Checklist:
make pr
passesExamples?
Please reach out in the comments, if you want to add an example. Examples will be
added to
sam init
through https://github.com/awslabs/aws-sam-cli-app-templates/By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.