-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(integ-test): HttpApiCall seems to be broken #30327
Comments
@kornicameister Good morning. Somehow, the below code works with CDK version
Is this failing at your end? Please confirm along with the error. In your previous code snippet, did you intend to use Thanks, |
I bumped the version, took code from your snippet above and it failed:
So.. it is a puzzle. I don't know if that's relevant but to further describe my environment;
|
No, in the very first snippet (from opening comment in issue) I am in fact expecting
|
@ashishdhingra any ideas? |
I had created https://github.com/kornicameister/repro-aws-cdk-30327 that reproduces bug for me. |
This might be related to my PR #29705, since it was the last change made to |
This ended up being unrelated to my change, the HTTP handler just did not implement the aws-cdk/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/lambda-handler/http.ts Lines 25 to 27 in a2e8dc5
aws-cdk/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/lambda-handler/sdk.ts Lines 18 to 22 in a2e8dc5
I'm going to open a PR to solve this issue |
@nmussy appreciate it. I was blocked by the lack of it and had to skip an important part of the integration tests because of it. Having it is something I look forward to. |
Describe the bug
I am trying to build a test that codes roughly does:
as you can see I am trying to get my hands on
uploadUrl
from response body.the assertion expressed in
expect
works fine (although there's no checkup foruploadUrl
but just because I am not sure if I can nest expectation). Still, I am confident thatuploadUrl
is present in response body based on logs.Is
httpApiCall
broken? I have located a lot of examples wheregetAtString
is used incdk
own test suites. Difference is that it is rather used withawsSdkCall
orlambdaInvokeFunction
rather thenhttpApiCall
.Use case
Use case is to be able to integ test parts of bigger component.
Without a need to deploy the whole component.
Expected Behavior
I can obtain part of response via
HttApiCall
Current Behavior
Test fails with
Vendor response doesn't contain apiCallResponse.body.uploadUrl
Reproduction Steps
Possible Solution
N/A
Additional Information/Context
N/A
CDK CLI Version
2.142.1
Framework Version
No response
Node.js Version
20.8
OS
MacOS sierra
Language
TypeScript
Language Version
5.4
Other information
No response
The text was updated successfully, but these errors were encountered: