From 9f1148680b417443c7ed5883de57f17027548d13 Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Fri, 21 Feb 2025 13:54:36 +0530 Subject: [PATCH 1/6] DevStack --- cdk.json | 6 +++--- tests/constants.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cdk.json b/cdk.json index 1f5d0be..f6686f1 100644 --- a/cdk.json +++ b/cdk.json @@ -20,13 +20,13 @@ "@aws-cdk/core:target-partitions": ["aws", "aws-cn"], "globals": { "appName": "CI-CD-Workshop", - "region": "" + "region": "ap-south-1" }, "environments": [ { "environment": "dev", "branchName": "dev", - "accountNumber": "", + "accountNumber": "495599771044", "s3Encryption": false, "ddbPITRecovery": false, "destroyPolicy": true @@ -34,7 +34,7 @@ { "environment": "prod", "branchName": "main", - "accountNumber": "", + "accountNumber": "688567299128", "s3Encryption": true, "ddbPITRecovery": true, "destroyPolicy": false diff --git a/tests/constants.ts b/tests/constants.ts index ec3ae28..bdb9d7b 100644 --- a/tests/constants.ts +++ b/tests/constants.ts @@ -1,4 +1,4 @@ -export const DEV_USER_POOL_ID = "ENTER_YOUR_DEV_USERPOOL_ID"; -export const DEV_USER_POOL_CLIENT_ID = "ENTER_YOUR_DEV_USERPOOL_CLIENT_ID"; -export const DEV_DYNAMO_TABLE_NAME = "ENTER_DEV_TABLE_NAME"; -export const DEV_REGION = "ENTER_DEV_REGION"; +export const DEV_USER_POOL_ID = "ap-south-1_ryeLU3nCi"; +export const DEV_USER_POOL_CLIENT_ID = "3ie37v951t2koprumc5da0m36v"; +export const DEV_DYNAMO_TABLE_NAME = "dev-table-CI-CD-Workshop"; +export const DEV_REGION = "ap-south-1"; From e45d0894777aba01531113f7823672688d0e035d Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Fri, 21 Feb 2025 14:02:17 +0530 Subject: [PATCH 2/6] workflow1 --- tests/e2e/confirm-user-sign-up.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e/confirm-user-sign-up.test.ts b/tests/e2e/confirm-user-sign-up.test.ts index 7acf3d0..54f5582 100644 --- a/tests/e2e/confirm-user-sign-up.test.ts +++ b/tests/e2e/confirm-user-sign-up.test.ts @@ -4,6 +4,7 @@ import * as when from "../steps/when"; describe("When a user Signs up ", () => { it("Users profile should be saved in DynamoDB", async () => { + console.log("Starting test..."); const { password, given_name, family_name, email } = given.a_random_user(); console.log("name: ", given_name, family_name); const userSub = await when.a_user_signs_up( From cde40bba8c1b76b1fa1ae197134d2bd7d962ad8e Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Fri, 21 Feb 2025 19:49:30 +0530 Subject: [PATCH 3/6] Starting test --- tests/e2e/confirm-user-sign-up.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/confirm-user-sign-up.test.ts b/tests/e2e/confirm-user-sign-up.test.ts index 54f5582..c094a64 100644 --- a/tests/e2e/confirm-user-sign-up.test.ts +++ b/tests/e2e/confirm-user-sign-up.test.ts @@ -4,7 +4,7 @@ import * as when from "../steps/when"; describe("When a user Signs up ", () => { it("Users profile should be saved in DynamoDB", async () => { - console.log("Starting test..."); + console.log("Starting test...!!"); const { password, given_name, family_name, email } = given.a_random_user(); console.log("name: ", given_name, family_name); const userSub = await when.a_user_signs_up( From 15f98f96af03430903232b80c8a87efbc25c96ac Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Fri, 21 Feb 2025 19:56:15 +0530 Subject: [PATCH 4/6] Kicking off workflow --- package.json | 1 + tests/constants.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 020c3ed..7a2f3d9 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "build": "tsc", "watch": "tsc -w", "cdk": "cdk", + "deploy": "cdk synth && cdk deploy --all --require-approval never", "github-deploy": "cdk synth && cdk deploy --all --require-approval never", "test": "jest jest --verbose ./tests/e2e/" }, diff --git a/tests/constants.ts b/tests/constants.ts index bdb9d7b..eabd7af 100644 --- a/tests/constants.ts +++ b/tests/constants.ts @@ -1,4 +1,4 @@ -export const DEV_USER_POOL_ID = "ap-south-1_ryeLU3nCi"; -export const DEV_USER_POOL_CLIENT_ID = "3ie37v951t2koprumc5da0m36v"; -export const DEV_DYNAMO_TABLE_NAME = "dev-table-CI-CD-Workshop"; +export const DEV_USER_POOL_ID = "ap-south-1_Nd5XV0O7N"; +export const DEV_USER_POOL_CLIENT_ID = "7tqcu9kgf42kqjb3ifpujg90e7"; +export const DEV_DYNAMO_TABLE_NAME = "dev-post-confirmation-CI-CD-Workshop"; export const DEV_REGION = "ap-south-1"; From 0e8c695f274cde0d4cc1ccd86d6ab0c840edbf9e Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Fri, 21 Feb 2025 19:59:51 +0530 Subject: [PATCH 5/6] added Correct table name --- tests/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/constants.ts b/tests/constants.ts index eabd7af..db145c9 100644 --- a/tests/constants.ts +++ b/tests/constants.ts @@ -1,4 +1,4 @@ export const DEV_USER_POOL_ID = "ap-south-1_Nd5XV0O7N"; export const DEV_USER_POOL_CLIENT_ID = "7tqcu9kgf42kqjb3ifpujg90e7"; -export const DEV_DYNAMO_TABLE_NAME = "dev-post-confirmation-CI-CD-Workshop"; +export const DEV_DYNAMO_TABLE_NAME = "dev-table-CI-CD-Workshop"; export const DEV_REGION = "ap-south-1"; From cb675f33308b83b994c6d9b1640e0351b83bb204 Mon Sep 17 00:00:00 2001 From: Vidit Shah Date: Sat, 22 Feb 2025 10:50:12 +0530 Subject: [PATCH 6/6] initial dev --- tests/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/constants.ts b/tests/constants.ts index db145c9..005527c 100644 --- a/tests/constants.ts +++ b/tests/constants.ts @@ -1,4 +1,4 @@ -export const DEV_USER_POOL_ID = "ap-south-1_Nd5XV0O7N"; -export const DEV_USER_POOL_CLIENT_ID = "7tqcu9kgf42kqjb3ifpujg90e7"; +export const DEV_USER_POOL_ID = "ap-south-1_JNrEITlJW"; +export const DEV_USER_POOL_CLIENT_ID = "4mu3mjbri3v62bbleebum81bi7"; export const DEV_DYNAMO_TABLE_NAME = "dev-table-CI-CD-Workshop"; export const DEV_REGION = "ap-south-1";