-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow Api.Auth in Globals section #682
Conversation
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.
Thank you for submitting this! Could you review why the tests aren't passing and fix them?
Codecov Report
@@ Coverage Diff @@
## develop #682 +/- ##
========================================
Coverage 94.17% 94.17%
========================================
Files 67 67
Lines 2678 2678
Branches 478 478
========================================
Hits 2522 2522
Misses 80 80
Partials 76 76
Continue to review full report at Codecov.
|
No problem, it was an expected error message that needed updating. This doesn't necessarily address the need for new tests, though. If you think they are needed, please point me to where I can get started. |
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.
Hi! Thanks for fixing that! Could you also add a success-case test? It should be as simple as adding an Auth
section (see example in this test) to the globals-for-api test, then fixing the test output to match the new expected behavior.
I'll take a look, I haven't seen this before. |
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.
I updated the tests- needed to change some of the hashes on the deployments as well as add in the security sections
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.
Tests pass in py36 but not py27. Investigating
@brettstack Could you review this one? Just wanted to sanity check that you hadn't intentionally excluded Api.Auth from globals for a reason. |
Is there an ETA for this getting published and available for use? Alternately, can I override the branch aws-sam-cli uses locally to validate the template? |
#512 added the ability to set API auth, and the original issue outlined including in the Globals section. However, it looks like the Globals checker actually is excluding Auth as one of the supported properties. Is there a reason that is so? I figured opening a PR was a quick and easy way to start a discussion as well as move toward a fix. Looking forward to your feedback!