Skip to content

Conversation

@keetonian
Copy link
Contributor

@keetonian keetonian commented Jan 2, 2019

Issue #, if available:
#142
Description of changes:
Add support for Conditions in Serverless API

Similar to #707 and #653

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

@keetonian keetonian requested a review from paoptu023 January 2, 2019 19:43
@keetonian keetonian requested a review from mlaff January 2, 2019 20:06
@codecov-io
Copy link

codecov-io commented Jan 2, 2019

Codecov Report

Merging #742 into release/v1.10.0 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           release/v1.10.0     #742      +/-   ##
===================================================
+ Coverage            94.18%   94.18%   +<.01%     
===================================================
  Files                   67       67              
  Lines                 2683     2685       +2     
  Branches               478      478              
===================================================
+ Hits                  2527     2529       +2     
  Misses                  80       80              
  Partials                76       76
Impacted Files Coverage Δ
samtranslator/model/sam_resources.py 95.72% <ø> (ø) ⬆️
samtranslator/model/api/api_generator.py 96.13% <100%> (+0.04%) ⬆️

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 b5d9fa1...27a985f. Read the comment docs.

@mlaff
Copy link

mlaff commented Jan 2, 2019

Could you add a nontrivial condition test case and confirm it works as expected ? For all the cases I see here, both options are true

@paoptu023
Copy link

Just curious, what's the use of these output files?

definition_body, definition_uri, name, stage_name, endpoint_configuration=None,
method_settings=None, binary_media=None, cors=None, auth=None, access_log_setting=None,
canary_setting=None, tracing_enabled=None):
canary_setting=None, tracing_enabled=None, resource_attributes=None,

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Will add

@keetonian
Copy link
Contributor Author

  1. Conditions: SAM does not evaluate the result of any conditions; this is just to add the framework to output the same conditions on the CFN resources that are given to the SAM (Serverless) resources.
  2. Output files: These output files are what the translator output is compared against. This makes it easier to see any changes and catch unwanted regressions or differences.

@keetonian keetonian merged commit ffb3e35 into aws:release/v1.10.0 Jan 2, 2019
keetonian added a commit to keetonian/serverless-application-model that referenced this pull request Feb 14, 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