File tree Expand file tree Collapse file tree
internal/pkg/services/mongodbflex/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -589,6 +589,24 @@ func TestGetRestoreStatus(t *testing.T) {
589589 },
590590 expectedOutput : "in progress" ,
591591 },
592+ {
593+ description : "get latest restore, another date format" ,
594+ listRestoreJobsResp : & mongodbflex.ListRestoreJobsResponse {
595+ Items : & []mongodbflex.RestoreInstanceStatus {
596+ {
597+ BackupID : utils .Ptr (testBackupId ),
598+ Date : utils .Ptr ("2009-11-10 23:00:00 +0000 UTC m=+0.000000001" ),
599+ Status : utils .Ptr ("finished" ),
600+ },
601+ {
602+ BackupID : utils .Ptr (testBackupId ),
603+ Date : utils .Ptr ("2009-11-11 23:00:00 +0000 UTC m=+0.000000001" ),
604+ Status : utils .Ptr ("in progress" ),
605+ },
606+ },
607+ },
608+ expectedOutput : "in progress" ,
609+ },
592610 {
593611 description : "no restore job for that backup" ,
594612 listRestoreJobsResp : & mongodbflex.ListRestoreJobsResponse {
You can’t perform that action at this time.
0 commit comments