tomwwright / littleorange

Minimalist AWS multi-account cloud leveraging CloudFormation and Lambda.
GNU General Public License v3.0
4 stars 1 forks source link

CloudFormation Resource Provider `contract_invalid_create` test fails #4

Open tomwwright opened 4 years ago

tomwwright commented 4 years ago

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:

cfn test -- -k 'not contract_invalid_create'