From 45d77c23de8e0208a494c1f25d164e7f5e44bce1 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Fri, 16 Aug 2024 15:15:23 -0700 Subject: [PATCH] Fix tests Signed-off-by: Sayali Gaikawad --- keycloak/test/internal-keycloak.test.ts | 5 ++--- keycloak/test/keycloak.test.ts | 5 ++--- keycloak/test/utils.test.ts | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/keycloak/test/internal-keycloak.test.ts b/keycloak/test/internal-keycloak.test.ts index ae2f6f0..59f1656 100644 --- a/keycloak/test/internal-keycloak.test.ts +++ b/keycloak/test/internal-keycloak.test.ts @@ -9,7 +9,6 @@ import { App } from 'aws-cdk-lib'; import { Match, Template } from 'aws-cdk-lib/assertions'; import { InitCommand } from 'aws-cdk-lib/aws-ec2'; -import { AllStacks } from '../lib/all-stacks'; import { KeycloakStack } from '../lib/stacks/keycloak'; import { RdsStack } from '../lib/stacks/rds'; import { KeycloakUtils } from '../lib/stacks/utils'; @@ -19,8 +18,8 @@ test('Internal Keycloak Installation Test', () => { const app = new App(); const vpcStack = new VpcStack(app, 'KeycloakTestVPCstack', {}); const keycloakUtilsStack = new KeycloakUtils(app, 'KeycloakUtilsTestStack', { - hostedZone: AllStacks.HOSTED_ZONE, - internalHostedZone: AllStacks.INTERNAL_HOSTED_ZONE, + hostedZone: 'keycloak.opensearch.org', + internalHostedZone: 'keycloak.internal.opensearch.org', }); const rdsStack = new RdsStack(app, 'RDSTestStack', { vpc: vpcStack.vpc, diff --git a/keycloak/test/keycloak.test.ts b/keycloak/test/keycloak.test.ts index f038c9d..e4708f6 100644 --- a/keycloak/test/keycloak.test.ts +++ b/keycloak/test/keycloak.test.ts @@ -9,7 +9,6 @@ import { App } from 'aws-cdk-lib'; import { Match, Template } from 'aws-cdk-lib/assertions'; import { InitCommand } from 'aws-cdk-lib/aws-ec2'; -import { AllStacks } from '../lib/all-stacks'; import { KeycloakStack } from '../lib/stacks/keycloak'; import { RdsStack } from '../lib/stacks/rds'; import { KeycloakUtils } from '../lib/stacks/utils'; @@ -19,8 +18,8 @@ test('Keycloak Installation Test', () => { const app = new App(); const vpcStack = new VpcStack(app, 'KeycloakTestVPCstack', {}); const keycloakUtilsStack = new KeycloakUtils(app, 'KeycloakUtilsTestStack', { - hostedZone: AllStacks.HOSTED_ZONE, - internalHostedZone: AllStacks.INTERNAL_HOSTED_ZONE, + hostedZone: 'keycloak.opensearch.org', + internalHostedZone: 'keycloak.internal.opensearch.org', }); const rdsStack = new RdsStack(app, 'RDSTestStack', { vpc: vpcStack.vpc, diff --git a/keycloak/test/utils.test.ts b/keycloak/test/utils.test.ts index 7588a10..d19a7a4 100644 --- a/keycloak/test/utils.test.ts +++ b/keycloak/test/utils.test.ts @@ -8,14 +8,13 @@ import { App } from 'aws-cdk-lib'; import { Template } from 'aws-cdk-lib/assertions'; -import { AllStacks } from '../lib/all-stacks'; import { KeycloakUtils } from '../lib/stacks/utils'; test('Utils Stack Test', () => { const app = new App(); const utilsStack = new KeycloakUtils(app, 'KeycloakTestUtilsStack', { - hostedZone: AllStacks.HOSTED_ZONE, - internalHostedZone: AllStacks.INTERNAL_HOSTED_ZONE, + hostedZone: 'keycloak.opensearch.org', + internalHostedZone: 'keycloak.internal.opensearch.org', }); const utilsStackTemplate = Template.fromStack(utilsStack); utilsStackTemplate.resourceCountIs('AWS::Route53::HostedZone', 2);