Skip to content

Commit bbc5132

Browse files
author
Dane Pilcher
committed
test: upgrade cdk in tests
1 parent 9a6ab0a commit bbc5132

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/amplify-graphql-api-construct-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@aws-amplify/graphql-transformer-interfaces": "4.2.4",
5454
"@aws-amplify/graphql-validate-transformer": "1.1.1",
5555
"@types/node": "^18.0.0",
56-
"aws-cdk-lib": "2.180.0",
56+
"aws-cdk-lib": "2.187.0",
5757
"constructs": "10.3.0",
5858
"ts-node": "^8.10.2"
5959
},

packages/amplify-graphql-api-construct-tests/src/__tests__/__snapshots__/base-cdk.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`CDK GraphQL Transformer CDK base case - aws-cdk-lib@2.180.0 1`] = `
3+
exports[`CDK GraphQL Transformer CDK base case - aws-cdk-lib@2.187.0 1`] = `
44
Object {
55
"body": Object {
66
"data": Object {
@@ -14,7 +14,7 @@ Object {
1414
}
1515
`;
1616
17-
exports[`CDK GraphQL Transformer CDK base case - aws-cdk-lib@2.180.0 2`] = `
17+
exports[`CDK GraphQL Transformer CDK base case - aws-cdk-lib@2.187.0 2`] = `
1818
Object {
1919
"body": Object {
2020
"data": Object {

packages/amplify-graphql-api-construct-tests/src/__tests__/admin-role.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ describe('CDK Auth Modes', () => {
2929
test('Can be invoked with Admin Roles defined', async () => {
3030
const templatePath = path.resolve(path.join(__dirname, 'backends', 'admin-role'));
3131
const name = await initCDKProject(projRoot, templatePath, {
32-
cdkVersion: '2.180.0', // Explicitly declaring this, since this version needs to match cognito idp
32+
cdkVersion: '2.187.0', // Explicitly declaring this, since this version needs to match cognito idp
3333
additionalDependencies: [
3434
'esbuild', // required to bundle the lambda function
35-
'@aws-cdk/aws-cognito-identitypool-alpha@2.180.0-alpha.0', // using alpha cognito idp resource for auth config
35+
'@aws-cdk/aws-cognito-identitypool-alpha@2.187.0-alpha.0', // using alpha cognito idp resource for auth config
3636
'@aws-crypto/sha256-js', // All remaining deps are required for the lambda to sign the request to appsync
3737
'@aws-sdk/credential-provider-node',
3838
'@aws-sdk/protocol-http',

packages/amplify-graphql-api-construct-tests/src/__tests__/base-cdk.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('CDK GraphQL Transformer', () => {
3030
deleteProjectDir(projRoot);
3131
});
3232

33-
['2.180.0', 'latest'].forEach((cdkVersion) => {
33+
['2.180.7', 'latest'].forEach((cdkVersion) => {
3434
test(`CDK base case - aws-cdk-lib@${cdkVersion}`, async () => {
3535
const templatePath = path.resolve(path.join(__dirname, 'backends', 'base-cdk'));
3636
const name = await initCDKProject(projRoot, templatePath, { cdkVersion });

packages/amplify-graphql-api-construct-tests/src/__tests__/data-construct.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('Data Construct', () => {
2525
deleteProjectDir(projRoot);
2626
});
2727

28-
['2.180.0', 'latest'].forEach((cdkVersion) => {
28+
['2.180.7', 'latest'].forEach((cdkVersion) => {
2929
test(`Data Construct - aws-cdk-lib@${cdkVersion}`, async () => {
3030
const templatePath = path.resolve(path.join(__dirname, 'backends', 'data-construct'));
3131
const name = await initCDKProject(projRoot, templatePath, { cdkVersion, construct: 'Data' });

packages/amplify-graphql-api-construct-tests/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export type InitCDKProjectProps = {
7878
* @returns a promise which resolves to the stack name
7979
*/
8080
export const initCDKProject = async (cwd: string, templatePath: string, props?: InitCDKProjectProps): Promise<string> => {
81-
const { cdkVersion = '2.180.0', additionalDependencies = [] } = props ?? {};
81+
const { cdkVersion = '2.187.0', additionalDependencies = [] } = props ?? {};
8282

8383
await spawn(getNpxPath(), ['cdk', 'init', 'app', '--language', 'typescript'], {
8484
cwd,

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9081,7 +9081,7 @@ aws-appsync@^4.1.1:
90819081
url "^0.11.0"
90829082
uuid "3.x"
90839083

9084-
aws-cdk-lib@2.180.0, aws-cdk-lib@^2.187.0, aws-cdk-lib@~2.129.0, aws-cdk-lib@~2.177.0:
9084+
aws-cdk-lib@2.187.0, aws-cdk-lib@^2.187.0, aws-cdk-lib@~2.129.0, aws-cdk-lib@~2.177.0:
90859085
version "2.187.0"
90869086
resolved "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.187.0.tgz#7b76246abb77cd305cdf2cd00c4f32f9eb38cf67"
90879087
integrity sha512-OrAWin+LD5sZhRF5cWuEYEkmC/sxxlgcAasCpfzeRsj6yDImwmeQsaKhM7xqzZQBInog6ZbN6oFZYiWEGJMSIA==

0 commit comments

Comments
 (0)