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

Release/v1.43.0 #2358

Merged
merged 63 commits into from
Mar 22, 2022
Merged

Release/v1.43.0 #2358

merged 63 commits into from
Mar 22, 2022

Conversation

mildaniel
Copy link
Contributor

Issue #, if available:

Description of changes:

Description of how you validated changes:

Checklist:

  • Add/update unit tests using:
  • Add/update integration tests
  • 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.

c2tarun and others added 30 commits November 8, 2021 09:38
* Fixing case when no allowed origin is passed.

* Adding functional tests to verify proper error message.

Co-authored-by: Tarun Mall <tarun@amazon.noreply.github.com>
…efinition path is not a dictionary object (#2214)

* raise a validation exception if the responses section in options method for a path in OpenApi Definition

* black formating

* validate the responses section should be a dictionary not only not null.

* fix py27 issue
…#2216)

* handle null DefinitionBody path item and null options field value, plus some reformatting

* check dictionary type

* more refactoring + throw error if not dict
release: 1.42.0
hotfix for foss integration tests
* Check type of resource type is a string

* Condense logic

* Black reformat
fix: open api set_path_default_authorizer (#2248)
* Do not abort SAR loop on throttling

* Address code review comments

* Simplify SAR polling loop and add test coverage
#2272)

* Fixing DisableExecuteApiEndpoint property for REST and adding integ tests.

* Fixing DisableExecuteApiEndpoint property for REST and adding integ tests.

* Fixing output templates to match py2 hashing.
* Add third party py27hash code

* Add Py27UniStr and unit tests

* Add py27hash_fix utils and tests

* Add to_py27_compatible_template and tests

* Apply py27hash fix to wherever it is needed

* Apply py27hash fix, all tests pass except api_with_any_method_in_swagger

* apply py27hash fix in openapi + run black

* remove py27 testing

* remove other py27 references

* black fixes

* fixes/typos

* remove py27 from tox.ini

* refactoring

* third party notice

* black

* Fix py27hash fix to deal with null events

* Fix Py27UniStr repr for unicode literals

* black reformat

* Update _template_has_api_resource to check data type more defensively

* Apply py27Dict in _get_authorizers

* Apply Py27Dict to authorizers and gateway responses which will go into swagger

* Update to_py27_compatible_template to handle parameter_values; Add Py27LongInt class

* Rename _convert_to_py27_dict to _convert_to_py27_type

* Apply Py27UniStr to path param name

* Handle HttpApi resource under to_py27_compatible_template

* Fix InvalidDocumentException to not sort different exceptions

* black reformat

* Remove unnecessary test files

Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com>
…ct (#2273)

* Raise exception if auth identity isn't a dict

* Add tests for congito auth and lambda request auth

* Check if property is a dict instead of using try/catch

* Fix error message
* correct CognitoUserPool SmsConfiguration type from list of dict to dict; fixes #1252

* Add tests for cognito userpool sms configuration type change

Co-authored-by: Daniel Mil <mladan@amazon.com>
CoshUS and others added 24 commits January 21, 2022 08:46
… Has No DefinitionBody (#2285)

* Added Python3 Support for Translate CLI

* Fixed disable_execute_api_endpoint: false Case

* Formatted with Black

* Added Fix for HttpApi

* Added Unit Tests

* Removed Function from Test Template

* Updated Executable to be Python 3 Only
…wagger Editor constructor (#2263)

* handle 'Invalid Swagger Document' and refactor some validation into Swagger Editor constructor

* missed removing a comment

* move path item validation into method

* update new function to use swagger editor instance

* small change, changing test to use swagger instead of openapi

* update deployment hashes in some updated tests

* add docstring :raises
Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com>
* Improve exception processing for Route53 with invalid type

* black reformat

* code refactor
In issue #1245, we had a cases were SAM would fail due to improper validation.
In updating #1286, I noticed this was patched in #1774 but we only added tests
for AWS::Serverless::StateMachine. This commit adds an additional test to cover
AWS::Serverless::Api.

Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
Previously, this repo did not do any linting. The linting that is enabled
is basic, as this commit disables all of what pylint was complaining about.

Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
* Implement __deepcopy__ to improve performance

* Cache py27 hash for Py27UniStr to improve performance
* Update function_with_custom_code_deploy integration test case

* Remove unused methods
SAM spec is maintained on our doc site now at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification-resources-and-properties.html
Since we keep the AWS Doc site up to date, we are removing the
one in the repo as it is duplicative and isn't tracked as part of our releases.

Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com>
Update 'description-file' to 'description_file', in order to silence
setuptools deprecation warning:

    /usr/lib/python3.9/site-packages/setuptools/dist.py:691: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead

Co-authored-by: Jacob Fuss <32497805+jfuss@users.noreply.github.com>
* Add retries on flaky integration test

* Fix cors origins header name
…n into Swagger Editor constructor (#2263)" (#2346)

This reverts commit 59df2db.
@mildaniel mildaniel merged commit 0eebbec into main Mar 22, 2022
@mildaniel mildaniel deleted the release/v1.43.0 branch March 22, 2022 21:31
@mildaniel mildaniel restored the release/v1.43.0 branch March 22, 2022 21:50
@ssenchenko ssenchenko deleted the release/v1.43.0 branch May 16, 2023 19: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.

None yet