forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redshift-alpha): issue aws#31634: added integration tests for re…
…dshift node type
- Loading branch information
Imtiaz Asad Bin, INI-DNA-DL
authored and
Imtiaz Asad Bin, INI-DNA-DL
committed
Oct 4, 2024
1 parent
41b2a51
commit a114c31
Showing
10 changed files
with
1,871 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/@aws-cdk/aws-redshift-alpha/test/integ.cluster-nodetype.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as ec2 from 'aws-cdk-lib/aws-ec2'; | ||
import { Stack, App, StackProps } from 'aws-cdk-lib'; | ||
import * as integ from '@aws-cdk/integ-tests-alpha'; | ||
import { Construct } from 'constructs'; | ||
import * as redshift from '../lib'; | ||
|
||
class RedshiftRA3LargeTestStack extends Stack { | ||
constructor(scope: Construct, id: string, props?: StackProps) { | ||
super(scope, id, props); | ||
|
||
const vpc = new ec2.Vpc(this, 'VPC', { | ||
restrictDefaultSecurityGroup: false | ||
}); | ||
|
||
new redshift.Cluster(this, 'RA3LargeCluster', { | ||
vpc: vpc, | ||
vpcSubnets: { | ||
subnetType: ec2.SubnetType.PUBLIC, | ||
}, | ||
masterUser: { | ||
masterUsername: 'admin', | ||
}, | ||
nodeType: redshift.NodeType.RA3_LARGE, | ||
numberOfNodes: 2, | ||
}); | ||
} | ||
} | ||
|
||
const app = new App(); | ||
|
||
new integ.IntegTest(app, 'RA3LargeNodeIntegTest', { | ||
testCases: [new RedshiftRA3LargeTestStack(app, 'redshift-ra3-large-integ')], | ||
}); | ||
|
||
app.synth(); |
19 changes: 19 additions & 0 deletions
19
...ter-nodetype.ts.snapshot/RA3LargeNodeIntegTestDefaultTestDeployAssert1EF91947.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...r-nodetype.ts.snapshot/RA3LargeNodeIntegTestDefaultTestDeployAssert1EF91947.template.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/@aws-cdk/aws-redshift-alpha/test/integ.cluster-nodetype.ts.snapshot/cdk.out
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/@aws-cdk/aws-redshift-alpha/test/integ.cluster-nodetype.ts.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
277 changes: 277 additions & 0 deletions
277
packages/@aws-cdk/aws-redshift-alpha/test/integ.cluster-nodetype.ts.snapshot/manifest.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.