Conflict contract tests: contract_update_non_existent_resource and contract_update_create_only_property
See original GitHub issueHey,
Our team is failing with contract test contract_update_non_existent_resource due it use contract_update_create_only_property test json file as previous resource model. This will make a failure loop that:
If test update the resource with same resource name, contract_update_create_only_property will failed due there is no createonly property change.
if test update the resource with different resource name, contract_update_non_existent_resource will failed due CfnNotUpdatableException
instead of NotFound.
Let me know if you wanna me clarify something, thanks! Alex
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey Anshika,
Thanks for reply. Could you confirm is contract test issue and won’t block our resource launch if the contract test
contract_update_non_existent_resource
failed? Still, by the test name and description I don’t think the input request should contains previous model.Let me know what you think.
Also failing
contract_update_non_existent_resource
due to handlers being called with invalid models and expectingCfnNotFoundException
as discussed in https://github.com/aws-cloudformation/cloudformation-cli/issues/527. I don’t think it makes sense to useinputs/inputs_1_invalid.json
as the input tocontract_update_non_existent_resource
and expectingCfnNotFoundException
because services should be doing model validation before actually checking resource existence