Skip to content

Commit

Permalink
wip cdk test
Browse files Browse the repository at this point in the history
  • Loading branch information
k70suK3-k06a7ash1 committed Apr 9, 2024
1 parent 3ae5f35 commit 9c1b8b1
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions cdk/test/cdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,53 @@ describe("Fine-grained Assertions Test", () => {
template.resourceCountIs("AWS::Cognito::UserPoolIdentityProvider", 0);
});
});

describe("Scheduler Test", () => {
test("has schedules", () => {
const app = new cdk.App();
const hasScheduleStack = new BedrockChatStack(app, "HasSchedulesStack", {
bedrockRegion: "us-east-1",
crossRegionReferences: true,
webAclId: "",
enableUsageAnalysis: true,
identityProviders: [],
userPoolDomainPrefix: "",
dbEncryption: false,
publishedApiAllowedIpV4AddressRanges: [""],
publishedApiAllowedIpV6AddressRanges: [""],
rdsSchedules: {
stop: {
minute: "",
hour: "",
dayOfMonth: "",
month: "",
dayOfWeek: "",
year: "*",
},
restored: {
minute: "",
hour: "",
dayOfMonth: "",
month: "",
dayOfWeek: "",
year: "*",
},
},
});
});
test("has'nt schedules", () => {
const app = new cdk.App();
const defaultStack = new BedrockChatStack(app, "DefaultStack", {
bedrockRegion: "us-east-1",
crossRegionReferences: true,
webAclId: "",
enableUsageAnalysis: true,
identityProviders: [],
userPoolDomainPrefix: "",
dbEncryption: false,
publishedApiAllowedIpV4AddressRanges: [""],
publishedApiAllowedIpV6AddressRanges: [""],
rdsSchedules: {},
});
});
});

0 comments on commit 9c1b8b1

Please sign in to comment.