Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 37 additions & 34 deletions tests/e2e/backup_restore_cli_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,18 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application CSI via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-csi-cli-e2e",
BackupRestoreType: lib.CSI,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application CSI via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-csi-cli-e2e",
// BackupRestoreType: lib.CSI,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application two Vol CSI via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent-twovol-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -303,17 +304,18 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-datamover-cli-e2e",
BackupRestoreType: lib.CSIDataMover,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-datamover-cli-e2e",
// BackupRestoreType: lib.CSIDataMover,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -325,18 +327,19 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application BlockDevice DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
PvcSuffixName: "-block-mode",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-blockdevice-cli-e2e",
BackupRestoreType: lib.CSIDataMover,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application BlockDevice DATAMOVER via CLI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
// PvcSuffixName: "-block-mode",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-blockdevice-cli-e2e",
// BackupRestoreType: lib.CSIDataMover,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application Native-Snapshots via CLI", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand Down
71 changes: 37 additions & 34 deletions tests/e2e/backup_restore_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,17 +408,18 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-csi-e2e",
BackupRestoreType: lib.CSI,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-csi-e2e",
// BackupRestoreType: lib.CSI,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application two Vol CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent-twovol-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -441,17 +442,18 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-datamover-e2e",
BackupRestoreType: lib.CSIDataMover,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-datamover-e2e",
// BackupRestoreType: lib.CSIDataMover,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -463,18 +465,19 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.Entry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
PvcSuffixName: "-block-mode",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Name: "mongo-blockdevice-e2e",
BackupRestoreType: lib.CSIDataMover,
PreBackupVerify: todoListReady(true, false, "mongo"),
PostRestoreVerify: todoListReady(false, false, "mongo"),
BackupTimeout: 20 * time.Minute,
},
}, nil),
// DOWN FOR MAINTENANCE
// ginkgo.Entry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
// ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
// PvcSuffixName: "-block-mode",
// BackupRestoreCase: BackupRestoreCase{
// Namespace: "mongo-persistent",
// Name: "mongo-blockdevice-e2e",
// BackupRestoreType: lib.CSIDataMover,
// PreBackupVerify: todoListReady(true, false, "mongo"),
// PostRestoreVerify: todoListReady(false, false, "mongo"),
// BackupTimeout: 20 * time.Minute,
// },
// }, nil),
ginkgo.Entry("MySQL application Native-Snapshots", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mysql-persistent/mysql-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Expand Down