Skip to content

Dev2 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
"globals": {
"appName": "CI-CD-Workshop",
"region": "<ADD REGION>"
"region": "ap-south-1"
},
"environments": [
{
"environment": "dev",
"branchName": "dev",
"accountNumber": "<ADD DEV ACCOUNT NUMBER>",
"accountNumber": "495599771044",
"s3Encryption": false,
"ddbPITRecovery": false,
"destroyPolicy": true
},
{
"environment": "prod",
"branchName": "main",
"accountNumber": "<ADD PROD ACCOUNT NUMBER>",
"accountNumber": "688567299128",
"s3Encryption": true,
"ddbPITRecovery": true,
"destroyPolicy": false
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
},
Expand Down
8 changes: 4 additions & 4 deletions tests/constants.ts
Original file line number Diff line number Diff line change
@@ -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";
1 change: 1 addition & 0 deletions tests/e2e/confirm-user-sign-up.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down