Running cfn test -- -k contract_invalid_create fails with this error:
cloudformation_cli_python_lib.exceptions.InternalFailure: __init__() got an unexpected keyword argument 'Arn' (TypeError)
Investigating the payload provided to the test endpoint, it fails because the resource properties are in the top-level request object instead of being in desiredResourceState and previousResourceState.
This seems to be a bug in the code that is generating the "invalid" create request.
Solution is to run tests excluding this problematic test:
Running
cfn test -- -k contract_invalid_create
fails with this error:Investigating the payload provided to the test endpoint, it fails because the resource properties are in the top-level request object instead of being in
desiredResourceState
andpreviousResourceState
.This seems to be a bug in the code that is generating the "invalid" create request.
Solution is to run tests excluding this problematic test: