-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(@aws-cdk/integ-tests-alpha): Verifying snapshot doesn't read values from cdk.context.json #31069
Comments
@sfriedlizuehlke Good morning. Thanks for reporting the issue. I was able to reproduce it when my default bootstrapped environment had a different qualifier than the one set here: const app = new cdk.App({
context: {
'@aws-cdk/core:bootstrapQualifier': '<SOME_BOOTSTRAP_QUALIFIER_HERE>',
},
}); Could you please check:
Thanks, |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hey @ashishdhingra, The bootstrap qualifier in the integration test is the same that was used for bootstrapping the environment. The deployment of the stacks works fine when I run the integration test with Note |
Appears to be reprroducible:
|
Describe the bug
When running an integration test with
integ-runner
the verification of the snapshot fails if the integration test contains aVPC.fromLookup(...)
. The snapshot verification show a difference in the VpcId with the new value being the default VpcID dummy value ofvpc-12345
.Expected Behavior
The
integ-runner
would read the VpcId from thecdk.context.json
.Current Behavior
As shown in the output above, the VpcId falls back to the default value of
vpc-12345
.Reproduction Steps
Define the following integration test:
integ-runner --update-on-failed
-> this will create thecdk.context.json
with the lookup values.integ-runner
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.148.1 (build 283525d)
Framework Version
No response
Node.js Version
v20.15.0
OS
Linux
Language
TypeScript
Language Version
Typescript (5.5.4)
Other information
No response
The text was updated successfully, but these errors were encountered: