@aws-cdk/integ-tests-alpha:DescribeUserPool
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the bug
I am making an assertion as follows
`const assertion1 = integ.assertions
.awsApiCall('CognitoIdentityServiceProvider', 'describeUserPool', {
UserPoolId: 'ap-southeast-1_1234567'
})
.expect(ExpectedResult.objectLike({
UserPool: {
Id: 'ap-southeast-1_1234567'
},
}));`
When I run `npm run integ-test`
I get the error
`CREATE_FAILED | Custom::DeployAssert@SdkCallCognitoIdentityServiceProviderde | CognitoStackTest/DefaultTest/DeployAssert/AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb/Default/Default (AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb) Response object is too long.`
### Expected Behavior
The CognitoStackTestDefaultTestDeployAssert stack needs to successfully deploy.
### Current Behavior
I get the error
`CREATE_FAILED | Custom::DeployAssert@SdkCallCognitoIdentityServiceProviderde | CognitoStackTest/DefaultTest/DeployAssert/AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb/Default/Default (AwsApiCallCognitoIdentityServiceProviderdescribeUserPool31f29c4a94406a13295f446784a03bfb) Response object is too long.`
### Reproduction Steps
Create an assertion using the following code
`const assertion1 = integ.assertions
.awsApiCall('CognitoIdentityServiceProvider', 'describeUserPool', {
UserPoolId: 'ap-southeast-1_1234567'
})
.expect(ExpectedResult.objectLike({
UserPool: {
Id: 'ap-southeast-1_1234567'
},
}));`
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CDK CLI Version
2.108.0
### Framework Version
_No response_
### Node.js Version
v16.20.2
### OS
Linux
### Language
TypeScript
### Language Version
_No response_
### Other information
_No response_
Contributor guide
Research direction
Start with the integ.assertions.awsApiCall('CognitoIdentityServiceProvider', 'describeUserPool', ...) entry point and reproduce the issue with npm run integ-test using the assertion shown. Trace why the describeUserPool response exceeds the deployment limit; done means the CognitoStackTestDefaultTestDeployAssert stack deploys successfully with the expected UserPool.Id assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100