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/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 ec3ae28..005527c 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_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"; diff --git a/tests/e2e/confirm-user-sign-up.test.ts b/tests/e2e/confirm-user-sign-up.test.ts index 7acf3d0..c094a64 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(