Skip to content
Discussion options

You must be logged in to vote

@github-actions proposed-answer Unit tests will test that a template is generated a certain way. Given a construct StatefulConstruct that creates both a Bucket and a Table, you could write unit tests that verify when you instantiate StatefulConstruct in a stack, a Bucket and Table resource are created with XYZ properties. View this section of the CDK workshop to see how you might create tests. The properties that you want to test for sure are the properties in the CloudFormation document that are marked as Update requires: Replacement

If you make changes to your StatefulConstruct construct such that these unit tests will start producing different values for any resources marked as Update …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@github-actions
Comment options

Answer selected by alex5207
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants