-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Milestone
Description
Reproduction Steps
Execute
npx cdk@next init -l java
Tests fail with the error
Running com.myorg.HelloV2JavaTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.805 sec <<< FAILURE!
com.myorg.HelloV2JavaTest.testStack() Time elapsed: 5.805 sec <<< FAILURE!
org.opentest4j.AssertionFailedError:
Expecting:
<{}>
to be equal to:
<{"Parameters":{"BootstrapVersion":{"Type":"AWS::SSM::Parameter::Value<String>","Default":"/cdk-bootstrap/hnb659fds/version","Description":"Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store."}},"Rules":{"CheckBootstrapVersion":{"Assertions":[{"Assert":{"Fn::Not":[{"Fn::Contains":[["1","2","3","4","5"],{"Ref":"BootstrapVersion"}]}]},"AssertDescription":"CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."}]}}}>
but was not.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at com.myorg.HelloV2JavaTest.testStack(HelloV2JavaTest.java:26)
Environment
- CDK CLI Version : 2.0.0-rc.17
- Framework Version: 2.0.0-rc.17
- Node.js Version: 14.15.1
- OS: Mac
- Language (Version): Java
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aws-cdk-libRelated to the aws-cdk-lib packageRelated to the aws-cdk-lib packagebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI