diff --git a/packages/@aws-cdk/aws-neptune-alpha/test/cluster.test.ts b/packages/@aws-cdk/aws-neptune-alpha/test/cluster.test.ts index ff2a8e6136a26..9af6a9a980157 100644 --- a/packages/@aws-cdk/aws-neptune-alpha/test/cluster.test.ts +++ b/packages/@aws-cdk/aws-neptune-alpha/test/cluster.test.ts @@ -830,6 +830,27 @@ describe('DatabaseCluster', () => { }); }).toThrow(/ServerlessScalingConfiguration minCapacity 10 must be less than serverlessScalingConfiguration maxCapacity 5/); }); + + test('create v1.3 engine version cluster', () => { + // GIVEN + const stack = testStack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + + // WHEN + new DatabaseCluster(stack, 'Database', { + instances: 1, + vpc, + instanceType: InstanceType.R5_LARGE, + engineVersion: EngineVersion.V1_3_0_0, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::Neptune::DBCluster', { + DBSubnetGroupName: { Ref: 'DatabaseSubnets3C9252C9' }, + VpcSecurityGroupIds: [{ 'Fn::GetAtt': ['DatabaseSecurityGroup5C91FDCB', 'GroupId'] }], + EngineVersion: '1.3.0.0', + }); + }); }); function testStack() { diff --git a/packages/@aws-cdk/aws-neptune-alpha/test/parameter-group.test.ts b/packages/@aws-cdk/aws-neptune-alpha/test/parameter-group.test.ts index fa3a64daeff20..6da616f6fbd1b 100644 --- a/packages/@aws-cdk/aws-neptune-alpha/test/parameter-group.test.ts +++ b/packages/@aws-cdk/aws-neptune-alpha/test/parameter-group.test.ts @@ -27,7 +27,7 @@ describe('ClusterParameterGroup', () => { }); test.each([ - ['neptune1', ParameterGroupFamily.NEPTUNE_1], ['neptune1.2', ParameterGroupFamily.NEPTUNE_1_2], + ['neptune1', ParameterGroupFamily.NEPTUNE_1], ['neptune1.2', ParameterGroupFamily.NEPTUNE_1_2], ['neptune1.3', ParameterGroupFamily.NEPTUNE_1_3], ])('create a cluster parameter group with family %s', (expectedFamily, family) => { // GIVEN const stack = new Stack(); @@ -74,7 +74,7 @@ describe('ClusterParameterGroup', () => { }); test.each([ - ['neptune1', ParameterGroupFamily.NEPTUNE_1], ['neptune1.2', ParameterGroupFamily.NEPTUNE_1_2], + ['neptune1', ParameterGroupFamily.NEPTUNE_1], ['neptune1.2', ParameterGroupFamily.NEPTUNE_1_2], ['neptune1.3', ParameterGroupFamily.NEPTUNE_1_3], ])('create a a instance/db parameter group with family %s', (expectedFamily, family) => { // GIVEN const stack = new Stack();