Skip to content

Conversation

wchengru
Copy link
Contributor

Issue #, if available:

Description of changes:

Description of how you validated changes:

Checklist:

  • Add/update tests using:
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected

Examples?

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.

@codecov-commenter
Copy link

Codecov Report

Merging #2284 (d0bd5d4) into develop (e7a1496) will increase coverage by 0.81%.
The diff coverage is 96.96%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
samtranslator/model/api/http_api_generator.py 91.21% <75.00%> (+0.02%) ⬆️
samtranslator/model/api/api_generator.py 93.71% <90.76%> (-0.65%) ⬇️
samtranslator/model/apigateway.py 96.95% <96.00%> (-0.20%) ⬇️
samtranslator/__init__.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/dialup.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/feature_toggle.py 100.00% <100.00%> (+12.16%) ⬆️
samtranslator/intrinsics/actions.py 98.79% <100.00%> (+0.07%) ⬆️
samtranslator/metrics/method_decorator.py 100.00% <100.00%> (ø)
samtranslator/metrics/metrics.py 100.00% <100.00%> (ø)
samtranslator/model/__init__.py 97.64% <100.00%> (ø)
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab6943a...d0bd5d4. Read the comment docs.

@moelasmar
Copy link
Contributor

Codecov Report

Merging #2284 (d0bd5d4) into develop (e7a1496) will increase coverage by 0.81%.
The diff coverage is 96.96%.

Impacted file tree graph

@@             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     

Impacted Files Coverage Δ
samtranslator/model/api/http_api_generator.py 91.21% <75.00%> (+0.02%) ⬆️
samtranslator/model/api/api_generator.py 93.71% <90.76%> (-0.65%) ⬇️
samtranslator/model/apigateway.py 96.95% <96.00%> (-0.20%) ⬇️
samtranslator/init.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/dialup.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/feature_toggle.py 100.00% <100.00%> (+12.16%) ⬆️
samtranslator/intrinsics/actions.py 98.79% <100.00%> (+0.07%) ⬆️
samtranslator/metrics/method_decorator.py 100.00% <100.00%> (ø)
samtranslator/metrics/metrics.py 100.00% <100.00%> (ø)
samtranslator/model/init.py 97.64% <100.00%> (ø)
... and 33 more
Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab6943a...d0bd5d4. Read the comment docs.

Could you please add more unit test cases to increase the coverage percentage in these files:

  • samtranslator/model/api/api_generator.py
  • samtranslator/model/apigateway.py

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):
Copy link
Contributor

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?

@wchengru wchengru force-pushed the fixRoute53 branch 2 times, most recently from 8956ba2 to 47f10dc Compare January 31, 2022 18:56
@hawflau hawflau merged commit f292456 into aws:develop Jan 31, 2022
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.

6 participants