Skip to content

Commit 523e4d1

Browse files
authored
fix: intmdb 1227 cloud bckp restore job required (#150)
1 parent 1fea66f commit 523e4d1

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

API.md

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/l1-resources/cloud-backup-restore-jobs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface CfnCloudBackUpRestoreJobsProps {
6262
*
6363
* @schema CfnCloudBackUpRestoreJobsProps#SnapshotId
6464
*/
65-
readonly snapshotId?: string;
65+
readonly snapshotId: string;
6666

6767
/**
6868
* Timestamp in the number of seconds that have elapsed since the UNIX epoch from which to you want to restore this snapshot. This is the first part of an Oplog timestamp.

test/l1-resources/cloud-backup-restore-jobs/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
const RESOURCE_NAME = "MongoDB::Atlas::CloudBackUpRestoreJobs";
2424
const CLUSTER_NAME = "testCluster";
2525
const TEST_PROJECT_ID = "projtest";
26+
const SNAPSHOT_ID = "testsnapshot";
2627

2728
test("CfnCloudBackUpRestoreJobs construct should contain default properties", () => {
2829
const mockApp = new App();
@@ -33,6 +34,7 @@ test("CfnCloudBackUpRestoreJobs construct should contain default properties", ()
3334
instanceName: CLUSTER_NAME,
3435
instanceType: CfnCloudBackUpRestoreJobsPropsInstanceType.CLUSTER,
3536
deliveryType: CfnCloudBackUpRestoreJobsPropsDeliveryType.AUTOMATED,
37+
snapshotId: SNAPSHOT_ID,
3638
});
3739

3840
const template = Template.fromStack(stack);
@@ -42,5 +44,6 @@ test("CfnCloudBackUpRestoreJobs construct should contain default properties", ()
4244
InstanceName: CLUSTER_NAME,
4345
InstanceType: "cluster",
4446
DeliveryType: "automated",
47+
SnapshotId: SNAPSHOT_ID,
4548
});
4649
});

0 commit comments

Comments
 (0)