-
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
Fix Issue #717 Cannot set DefaultAuthorizer and have CORS enabled #958
Conversation
The tests failed due to API gateway hashes and I don't know how to fix that and I don't know how to generate test cases for aw-us-gov and aws-cn so I need direction or help on that. |
To fix the hashes could you try running the tests in python 2.7 and copying the output into the output/json, output/aws-cn/json and output/aws-us-gov/json files. |
fix: fix for tests
I merged the PR for you, is there anything else that I need to do? |
@xrendan That would be it! Thanks. That should fix the build issues! |
Guess that didn't do it; I made the changes locally this time and submitted another PR to your branch: https://github.com/xrendan/serverless-application-model/pull/2 That should fix the test failures. Sorry about this! |
Codecov Report
@@ Coverage Diff @@
## develop #958 +/- ##
===========================================
- Coverage 94.8% 94.69% -0.11%
===========================================
Files 69 69
Lines 3079 3149 +70
Branches 580 604 +24
===========================================
+ Hits 2919 2982 +63
- Misses 84 85 +1
- Partials 76 82 +6
Continue to review full report at Codecov.
|
@keetonian it's all merged up, thanks for fixing my tests, I hadn't had the time to do it myself with work this week. I'll submit a PR for the unbound local issue later today or tomorrow. |
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.
Looks good! Thank you for the contribution!
Maybe this is a silly question but I don't know the workflows. When is this change going to be available in AWS CLI? @keetonian |
Issue #717
Description of changes:
Add
AddDefaultAuthorizerToCorsPreflight
parameter Auth object so that you can in API fixed code from PR #828 so that it does not fail the test cases.Description of how you validated changes:
Generated test cases for default condition and with
AddDefaultAuthorizerToCorsPreflight
set to False, the output cloudformation json has security for the options method when it is True and has no security when it is set to False.Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.