forked from aws-quickstart/cdk-eks-blueprints
-
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.
- Loading branch information
1 parent
8248bd6
commit 611e8ab
Showing
12 changed files
with
24 additions
and
25 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
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
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
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './eksBlueprintStack'; | ||
export * from './stacks/eks-blueprint-stack'; | ||
export * as Addons from './addons'; | ||
|
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { expect as expectCDK, haveResource } from '@aws-cdk/assert'; | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as CdkEksBlueprint from '../lib/eksBlueprintStack'; | ||
import * as CdkEksBlueprint from '../lib/stacks/eks-blueprint-stack'; | ||
|
||
test('SQS Queue Created', () => { | ||
const app = new cdk.App(); | ||
// WHEN | ||
const stack = new CdkEksBlueprint.CdkEksBlueprintStack(app, { id: 'MyTestStack' }); | ||
// THEN | ||
expectCDK(stack).to(haveResource("AWS::SQS::Queue", { | ||
VisibilityTimeout: 300 | ||
})); | ||
const app = new cdk.App(); | ||
// WHEN | ||
const stack = new CdkEksBlueprint.CdkEksBlueprintStack(app, { id: 'MyTestStack' }); | ||
// THEN | ||
expectCDK(stack).to(haveResource("AWS::SQS::Queue", { | ||
VisibilityTimeout: 300 | ||
})); | ||
}); | ||
|
||
test('SNS Topic Created', () => { | ||
const app = new cdk.App(); | ||
// WHEN | ||
const stack = new CdkEksBlueprint.CdkEksBlueprintStack(app, { id: 'MyTestStack' }); | ||
// THEN | ||
expectCDK(stack).to(haveResource("AWS::SNS::Topic")); | ||
const app = new cdk.App(); | ||
// WHEN | ||
const stack = new CdkEksBlueprint.CdkEksBlueprintStack(app, { id: 'MyTestStack' }); | ||
// THEN | ||
expectCDK(stack).to(haveResource("AWS::SNS::Topic")); | ||
}); |