aws-cloudformation / cloudformation-cli

The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Apache License 2.0
318 stars 161 forks source link

Implement canary file generation functionality from contract test PatchInputs #1074

Closed marc-1010 closed 3 months ago

marc-1010 commented 3 months ago

Issue #, if available:

Description of changes: Add canary file generation functionality for Patch Operation canaries from contract test inputs. canarySettings will be shared with generating Create Operation canaries.

Testing Scenarios:

  1. Validate that the correct number of output files are generated. Validated that file naming and structure are correct.
  2. Validate that an existing field in the CreateInputs will be updated by a replace, add or remove operation in PatchInputs.
  3. Validate that only replace, add and remove operations result in an update. Other operations such as move, copy and test are ignored.
  4. Validate that a field can be updated if it was not included in CreateInputs but included in PatchInputs for add and replace operations.
  5. Validate that nested inputs are correctly updated.

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

marc-1010 commented 3 months ago

Summary of Updates: