Skip to content

Conversation

jasonmk
Copy link
Contributor

@jasonmk jasonmk commented Jan 25, 2019

Issue #, if available:
#661
Description of changes:
Adds support for specifying permissions boundary on a serverless function. Includes test templates

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

codecov-io commented Jan 25, 2019

Codecov Report

Merging #782 into develop will decrease coverage by 0.48%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #782      +/-   ##
===========================================
- Coverage    94.71%   94.22%   -0.49%     
===========================================
  Files           67       67              
  Lines         2950     2686     -264     
  Branches       578      478     -100     
===========================================
- Hits          2794     2531     -263     
- Misses          78       80       +2     
+ Partials        78       75       -3
Impacted Files Coverage Δ
samtranslator/model/iam.py 81.25% <ø> (ø) ⬆️
samtranslator/plugins/globals/globals.py 100% <ø> (ø) ⬆️
samtranslator/model/s3_utils/uri_parser.py 71.42% <0%> (ø) ⬆️
samtranslator/translator/translator.py 99.02% <100%> (ø) ⬆️
samtranslator/model/sam_resources.py 95.74% <100%> (-1.23%) ⬇️
samtranslator/model/eventsources/push.py 86.06% <0%> (-4.24%) ⬇️
samtranslator/model/api/api_generator.py 96.08% <0%> (-0.39%) ⬇️
samtranslator/model/eventsources/cloudwatchlogs.py 100% <0%> (ø) ⬆️
samtranslator/model/eventsources/pull.py 91.66% <0%> (+0.14%) ⬆️
... and 1 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 7cf48bd...274fa7e. Read the comment docs.

Copy link
Contributor

@brettstack brettstack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! For Globals, check out this PR which added Auth to Globals https://github.com/awslabs/serverless-application-model/pull/682/files

Copy link
Contributor

@brettstack brettstack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this as it looks good in its current form, though Globals support would be a great addition.

@keetonian keetonian changed the base branch from master to develop January 29, 2019 18:03
@jasonmk
Copy link
Contributor Author

jasonmk commented Jan 31, 2019

Updated with globals support. Cheers!

tox>=2.2.1
pytest-cov>=2.4.0
pylint>=1.7.2
pylint>=1.7.2,<2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why this was necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip was trying to install a post 2.0 version which required py3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh ok, thanks

Copy link
Contributor

@keetonian keetonian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for this contribution!

@keetonian keetonian closed this Feb 1, 2019
@keetonian keetonian reopened this Feb 1, 2019
@brettstack brettstack merged commit 7ecce10 into aws:develop Feb 1, 2019
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.

4 participants