Skip to content

Test request throws exception with cloudformation-cli 0.1.6. Fails to parse new fields. #109

Description

@drch-

aws-cloudformation/cloudformation-cli@b8466be added new fields to the test event, which are causing an exception when running cfn test

START RequestId: af819c5a-99f5-1d9c-ad69-7614c2c1d235 Version: $LATEST
[ERROR]	2020-08-07T21:56:25.652Z	af819c5a-99f5-1d9c-ad69-7614c2c1d235	Invalid request
Traceback (most recent call last):
  File "/var/task/cloudformation_cli_python_lib/resource.py", line 103, in _parse_test_request
    **event.request
TypeError: __init__() got an unexpected keyword argument 'region'
[ERROR]	2020-08-07T21:56:25.653Z	af819c5a-99f5-1d9c-ad69-7614c2c1d235	Handler error
Traceback (most recent call last):
  File "/var/task/cloudformation_cli_python_lib/resource.py", line 103, in _parse_test_request
    **event.request
TypeError: __init__() got an unexpected keyword argument 'region'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/task/cloudformation_cli_python_lib/resource.py", line 119, in test_entrypoint
    session, request, action, callback_context = self._parse_test_request(event)
  File "/var/task/cloudformation_cli_python_lib/resource.py", line 110, in _parse_test_request
    raise InternalFailure(f"{e} ({type(e).__name__})") from e
cloudformation_cli_python_lib.exceptions.InternalFailure: __init__() got an unexpected keyword argument 'region' (TypeError)
END RequestId: af819c5a-99f5-1d9c-ad69-7614c2c1d235

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPWork In ProgressbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions