Skip to content
Merged
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
16 changes: 7 additions & 9 deletions e2e/test_operator_backups/operator_backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ import (
)

var (
factory *fixtures.Factory
fdbCluster *fixtures.FdbCluster
testOptions *fixtures.FactoryOptions
supportsEncryption fdbv1beta2.Version
factory *fixtures.Factory
fdbCluster *fixtures.FdbCluster
testOptions *fixtures.FactoryOptions
)

func init() {
Expand All @@ -63,9 +62,6 @@ var _ = BeforeSuite(func() {
Skip("Skip backup tests with 7.1.63 as this version has a bug in the fdbbackup agent")
}

supportsEncryption, err = fdbv1beta2.ParseFdbVersion("7.4.6")
Expect(err).NotTo(HaveOccurred())

// Create a blobstore for testing backups and restore.
factory.CreateBlobstoreIfAbsent(factory.SingleNamespace())
})
Expand Down Expand Up @@ -162,7 +158,8 @@ var _ = Describe("Operator Backup", Label("e2e", "pr"), func() {

When("encryption is enabled", func() {
BeforeEach(func() {
if !factory.GetFDBVersion().IsAtLeast(supportsEncryption) {
if !factory.GetFDBVersion().
IsAtLeast(fdbv1beta2.Versions.SupportsBackupEncryption) {
Skip(
"version doesn't support the encryption feature",
)
Expand Down Expand Up @@ -209,7 +206,8 @@ var _ = Describe("Operator Backup", Label("e2e", "pr"), func() {

When("encryption is enabled", func() {
BeforeEach(func() {
if !factory.GetFDBVersion().IsAtLeast(supportsEncryption) {
if !factory.GetFDBVersion().
IsAtLeast(fdbv1beta2.Versions.SupportsBackupEncryption) {
Skip(
"version doesn't support the encryption feature",
)
Expand Down