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

asserts that primary id has not got changed throughout update #498

Merged

Conversation

ammokhov
Copy link
Contributor

Issue #, if available:

Description of changes:

this is also a part of this issue #361
We need to assert that primary id did not get changed withing handler code

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

@ammokhov ammokhov requested review from rjlohan and anshikg July 17, 2020 21:56
Copy link
Contributor

@anshikg anshikg left a comment

Choose a reason for hiding this comment

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

@anshikg
Copy link
Contributor

anshikg commented Jul 17, 2020

I think we already make this check in update: https://github.com/aws-cloudformation/cloudformation-cli/blob/master/src/rpdk/core/contract/suite/handler_update.py#L39

Discussed offline with Anton, it seems we want to assert the primary identifier has not changed after the update is complete.

@ammokhov ammokhov requested a review from johnttompkins July 20, 2020 17:59
@ammokhov ammokhov assigned anshikg and ammokhov and unassigned anshikg Jul 20, 2020
@ammokhov ammokhov added contract tests I'll make you an offer you can't refuse enhancement New feature or request labels Jul 20, 2020
@ammokhov ammokhov merged commit 4fa2c01 into aws-cloudformation:master Jul 20, 2020
@ammokhov ammokhov deleted the primary-id-assertion-on-update branch July 20, 2020 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract tests I'll make you an offer you can't refuse enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants