-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upparekh/publish-service-extension
- Loading branch information
Showing
96 changed files
with
13,916 additions
and
2,616 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ nyc.config.js | |
*.snk | ||
!.eslintrc.js | ||
|
||
junit.xml | ||
junit.xml | ||
!jest.config.js |
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ tsconfig.json | |
**/cdk.out | ||
junit.xml | ||
test/ | ||
!*.lit.ts | ||
!*.lit.ts | ||
jest.config.js |
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,2 @@ | ||
const baseConfig = require('../../../tools/cdk-build-tools/config/jest.config'); | ||
module.exports = baseConfig; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { SymlinkFollowMode } from '@aws-cdk/core'; | ||
import '@aws-cdk/assert-internal/jest'; | ||
import { FollowMode } from '../lib'; | ||
import { toSymlinkFollow } from '../lib/compat'; | ||
|
||
test('FollowMode compatibility', () => { | ||
expect(toSymlinkFollow(undefined)).toEqual(undefined); | ||
expect(toSymlinkFollow(FollowMode.ALWAYS)).toEqual(SymlinkFollowMode.ALWAYS); | ||
expect(toSymlinkFollow(FollowMode.BLOCK_EXTERNAL)).toEqual(SymlinkFollowMode.BLOCK_EXTERNAL); | ||
expect(toSymlinkFollow(FollowMode.EXTERNAL)).toEqual(SymlinkFollowMode.EXTERNAL); | ||
expect(toSymlinkFollow(FollowMode.NEVER)).toEqual(SymlinkFollowMode.NEVER); | ||
}); |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,4 +16,5 @@ nyc.config.js | |
!.eslintrc.js | ||
|
||
junit.xml | ||
!test/lambda/*/*.js | ||
!test/lambda/*/*.js | ||
!jest.config.js |
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ tsconfig.json | |
**/cdk.out | ||
junit.xml | ||
test/ | ||
!*.lit.ts | ||
!*.lit.ts | ||
jest.config.js |
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,2 @@ | ||
const baseConfig = require('../../../tools/cdk-build-tools/config/jest.config'); | ||
module.exports = baseConfig; |
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
26 changes: 26 additions & 0 deletions
26
packages/@aws-cdk/aws-codedeploy/test/ecs/application.test.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,26 @@ | ||
import '@aws-cdk/assert-internal/jest'; | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as codedeploy from '../../lib'; | ||
|
||
describe('CodeDeploy ECS Application', () => { | ||
test('can be created', () => { | ||
const stack = new cdk.Stack(); | ||
new codedeploy.EcsApplication(stack, 'MyApp'); | ||
|
||
expect(stack).toHaveResource('AWS::CodeDeploy::Application', { | ||
ComputePlatform: 'ECS', | ||
}); | ||
}); | ||
|
||
test('can be created with explicit name', () => { | ||
const stack = new cdk.Stack(); | ||
new codedeploy.EcsApplication(stack, 'MyApp', { | ||
applicationName: 'my-name', | ||
}); | ||
|
||
expect(stack).toHaveResource('AWS::CodeDeploy::Application', { | ||
ApplicationName: 'my-name', | ||
ComputePlatform: 'ECS', | ||
}); | ||
}); | ||
}); |
18 changes: 18 additions & 0 deletions
18
packages/@aws-cdk/aws-codedeploy/test/ecs/deployment-group.test.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,18 @@ | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as codedeploy from '../../lib'; | ||
|
||
describe('CodeDeploy ECS DeploymentGroup', () => { | ||
describe('imported with fromEcsDeploymentGroupAttributes', () => { | ||
test('defaults the Deployment Config to AllAtOnce', () => { | ||
const stack = new cdk.Stack(); | ||
|
||
const ecsApp = codedeploy.EcsApplication.fromEcsApplicationName(stack, 'EA', 'EcsApplication'); | ||
const importedGroup = codedeploy.EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(stack, 'EDG', { | ||
application: ecsApp, | ||
deploymentGroupName: 'EcsDeploymentGroup', | ||
}); | ||
|
||
expect(importedGroup.deploymentConfig).toEqual(codedeploy.EcsDeploymentConfig.ALL_AT_ONCE); | ||
}); | ||
}); | ||
}); |
33 changes: 0 additions & 33 deletions
33
packages/@aws-cdk/aws-codedeploy/test/ecs/test.application.ts
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
packages/@aws-cdk/aws-codedeploy/test/ecs/test.deployment-group.ts
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
packages/@aws-cdk/aws-codedeploy/test/lambda/application.test.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,24 @@ | ||
import '@aws-cdk/assert-internal/jest'; | ||
import * as cdk from '@aws-cdk/core'; | ||
import * as codedeploy from '../../lib'; | ||
|
||
describe('CodeDeploy Lambda Application', () => { | ||
test('can be created', () => { | ||
const stack = new cdk.Stack(); | ||
new codedeploy.LambdaApplication(stack, 'MyApp'); | ||
expect(stack).toHaveResource('AWS::CodeDeploy::Application', { | ||
ComputePlatform: 'Lambda', | ||
}); | ||
}); | ||
|
||
test('can be created with explicit name', () => { | ||
const stack = new cdk.Stack(); | ||
new codedeploy.LambdaApplication(stack, 'MyApp', { | ||
applicationName: 'my-name', | ||
}); | ||
expect(stack).toHaveResource('AWS::CodeDeploy::Application', { | ||
ApplicationName: 'my-name', | ||
ComputePlatform: 'Lambda', | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.