Closed MalikAtalla-AWS closed 1 year ago
The contract tests expect that the ListHandler returns the default module versions, not the module itself.
Currently, when we invoke the ListHandler we get the Module arns like this:
aws cloudcontrol list-resources --type-name AWS::CloudFormation::ModuleDefaultVersion --region us-west-2
{ "ResourceDescriptions": [ { "Identifier": "arn:aws:cloudformation:us-west-2:123:type/module/Malik-mm-mm-MODULE", "Properties": "{\"ModuleName\":\"Malik::mm::mm::MODULE\",\"Arn\":\"arn:aws:cloudformation:us-west-2:123:type/module/Malik-mm-mm-MODULE\"}" } ], "TypeName": "AWS::CloudFormation::ModuleDefaultVersion" }
But, the expected output according to the resource contract is like this:
{ "ResourceDescriptions": [ { "Identifier": "arn:aws:cloudformation:us-west-2:123:type/module/Malik-mm-mm-MODULE/00000001", "Properties": "{\"ModuleName\":\"Malik::mm::mm::MODULE\",\"Arn\":\"arn:aws:cloudformation:us-west-2:123:type/module/Malik-mm-mm-MODULE\"}" } ], "TypeName": "AWS::CloudFormation::ModuleDefaultVersion" }
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
The contract tests expect that the ListHandler returns the default module versions, not the module itself.
Currently, when we invoke the ListHandler we get the Module arns like this:
But, the expected output according to the resource contract is like this:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.