Skip to content

Commit 862072e

Browse files
authored
chore(cognito-identitypool-alpha): add assertions to integ test (#33549)
### Issue # (if applicable) N/A ### Reason for this change To put these integration tests more in-line with the rest in the repository and ensure tests are comprehensive, added assertions to validate that the `IdentityPool` construct is deployed with the correct parameters. ### Description of changes Added assertions against the Cognito calls for `DescribeIdentityPoolCommand` ([doc ref](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/DescribeIdentityPoolCommand/)) and `GetIdentityPoolRolesCommand` ([doc ref](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity/command/GetIdentityPoolRolesCommand/)). ### Describe any new or updated permissions being added N/A ### Description of how you validated changes `yarn integ test/integ.identitypool.js` passes and the tests deploy. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e892da2 commit 862072e

File tree

8 files changed

+35421
-10
lines changed

8 files changed

+35421
-10
lines changed

packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.js.snapshot/asset.3e61c39c0efebc770b86906206d499dc248b5325972df96455773db9e6a37216.bundle/index.js

+34,548
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.js.snapshot/integ-idp.assets.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.js.snapshot/integ-idp.template.json

+43
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,49 @@
600600
]
601601
}
602602
},
603+
"Outputs": {
604+
"ExportsOutputRefidentitypoolE2A6D099E51DBB61": {
605+
"Value": {
606+
"Ref": "identitypoolE2A6D099"
607+
},
608+
"Export": {
609+
"Name": "integ-idp:ExportsOutputRefidentitypoolE2A6D099E51DBB61"
610+
}
611+
},
612+
"ExportsOutputFnGetAttidentitypoolE2A6D099Name3FFCBBDD": {
613+
"Value": {
614+
"Fn::GetAtt": [
615+
"identitypoolE2A6D099",
616+
"Name"
617+
]
618+
},
619+
"Export": {
620+
"Name": "integ-idp:ExportsOutputFnGetAttidentitypoolE2A6D099Name3FFCBBDD"
621+
}
622+
},
623+
"ExportsOutputFnGetAttidentitypoolAuthenticatedRoleB074B49DArnF2BA4F08": {
624+
"Value": {
625+
"Fn::GetAtt": [
626+
"identitypoolAuthenticatedRoleB074B49D",
627+
"Arn"
628+
]
629+
},
630+
"Export": {
631+
"Name": "integ-idp:ExportsOutputFnGetAttidentitypoolAuthenticatedRoleB074B49DArnF2BA4F08"
632+
}
633+
},
634+
"ExportsOutputFnGetAttidentitypoolUnauthenticatedRoleE61CAC70Arn1E3CB7FC": {
635+
"Value": {
636+
"Fn::GetAtt": [
637+
"identitypoolUnauthenticatedRoleE61CAC70",
638+
"Arn"
639+
]
640+
},
641+
"Export": {
642+
"Name": "integ-idp:ExportsOutputFnGetAttidentitypoolUnauthenticatedRoleE61CAC70Arn1E3CB7FC"
643+
}
644+
}
645+
},
603646
"Parameters": {
604647
"BootstrapVersion": {
605648
"Type": "AWS::SSM::Parameter::Value<String>",

packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.js.snapshot/integidentitypoolDefaultTestDeployAssert8F0BD226.assets.json

+15-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)