Skip to content

enable local and cloudwatch handler re-invocation while IN_PROGRESS - #63

Merged
rjlohan merged 4 commits into
aws-cloudformation:masterfrom
jaymccon:reinvoke
Nov 26, 2019
Merged

rjlohan merged 4 commits into
aws-cloudformation:masterfrom
jaymccon:reinvoke

Conversation

@jaymccon

Copy link
Copy Markdown
Contributor

Issue #, if available: #57

Description of changes:

doesn't include reportProgress which will come in a future pr.

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

@johnttompkins johnttompkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, just had a couple questions about the tests

Comment thread tests/lib/resource_test.py Outdated
Comment thread tests/lib/resource_test.py Outdated
Comment thread tests/lib/resource_test.py Outdated
Comment thread src/cloudformation_cli_python_lib/resource.py Outdated
Comment thread src/cloudformation_cli_python_lib/resource.py Outdated
Comment thread src/cloudformation_cli_python_lib/resource.py Outdated
Comment thread src/cloudformation_cli_python_lib/resource.py Outdated
Comment thread src/cloudformation_cli_python_lib/utils.py Outdated
Comment thread tests/lib/resource_test.py Outdated
Comment thread src/cloudformation_cli_python_lib/resource.py
assert mock_request.requestContext.get("invocation") == 1


def test_schedule_reinvocation_cloudwatch_callback():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there are a lot of mocks here. i vastly prefer some decoupling, such as creating the platform session somewhere else

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

reduced the mock count somewhat, session is created elsewhere, still quite a few mocks left though

@jaymccon
jaymccon requested a review from tobywf November 26, 2019 17:28
@rjlohan
rjlohan merged commit 1767fa9 into aws-cloudformation:master Nov 26, 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.

5 participants