Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
  • Loading branch information
gaiksaya committed Aug 16, 2024
1 parent d7f981c commit 45d77c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions keycloak/test/internal-keycloak.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions keycloak/test/keycloak.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions keycloak/test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45d77c2

Please sign in to comment.