From 51b40d0e7902f2c837ae60420089932691465965 Mon Sep 17 00:00:00 2001 From: Ujwal <63979260+ujwalbukka@users.noreply.github.com> Date: Tue, 16 Jul 2024 21:27:45 -0400 Subject: [PATCH] fix: Job runner test fix (#74) * Job runner test fixes * chore: self mutation Signed-off-by: github-actions --------- Signed-off-by: github-actions Co-authored-by: github-actions --- API.md | 13 +++++++++++++ src/control-plane/auth/cognito-auth.ts | 2 +- src/core-app-plane/integ.default.ts | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index 2e638f9..925e204 100644 --- a/API.md +++ b/API.md @@ -569,6 +569,7 @@ Any object. | tokenEndpoint | string | The endpoint URL for granting OAuth tokens. | | updateUserFunction | aws-cdk-lib.aws_lambda.IFunction | The Lambda function for updating a user. | | userClientId | string | The client ID enabled for user-centric authentication flows, such as Authorization Code flow. | +| userPool | aws-cdk-lib.aws_cognito.UserPool | UserPool created as part of this construct. | | wellKnownEndpointUrl | string | The well-known endpoint URL for the control plane identity provider. | | activateTenantScope | string | The scope required to authorize requests for activating a tenant. | | createTenantScope | string | The scope required to authorize requests for creating a tenant. | @@ -780,6 +781,18 @@ This client ID is used for authenticating end-users. --- +##### `userPool`Required + +```typescript +public readonly userPool: UserPool; +``` + +- *Type:* aws-cdk-lib.aws_cognito.UserPool + +UserPool created as part of this construct. + +--- + ##### `wellKnownEndpointUrl`Required ```typescript diff --git a/src/control-plane/auth/cognito-auth.ts b/src/control-plane/auth/cognito-auth.ts index f2149ab..baffdc9 100644 --- a/src/control-plane/auth/cognito-auth.ts +++ b/src/control-plane/auth/cognito-auth.ts @@ -206,7 +206,7 @@ export class CognitoAuth extends Construct implements IAuth { /** * UserPool created as part of this construct. */ - private readonly userPool: cognito.UserPool; + readonly userPool: cognito.UserPool; /** * The Lambda function for creating a new Admin User. This is used as part of a diff --git a/src/core-app-plane/integ.default.ts b/src/core-app-plane/integ.default.ts index b024358..e7a6bdb 100644 --- a/src/core-app-plane/integ.default.ts +++ b/src/core-app-plane/integ.default.ts @@ -195,7 +195,7 @@ const integStack = new IntegStack(app, process.env.CDK_PARAM_STACK_ID ?? 'CoreAp NagSuppressions.addResourceSuppressionsByPath( integStack, - `/${integStack.artifactId}/CoreApplicationPlane/deprovisioning-codeBuildProvisionProjectRole/Resource`, + `/${integStack.artifactId}/deprovisioningJobRunner/codeBuildProvisionProjectRole/Resource`, [ { id: 'AwsSolutions-IAM5', @@ -207,7 +207,7 @@ NagSuppressions.addResourceSuppressionsByPath( NagSuppressions.addResourceSuppressionsByPath( integStack, - `/${integStack.artifactId}/CoreApplicationPlane/provisioning-codeBuildProvisionProjectRole/Resource`, + `/${integStack.artifactId}/provisioningJobRunner/codeBuildProvisionProjectRole/Resource`, [ { id: 'AwsSolutions-IAM5',