Skip to content

Commit

Permalink
add support for mdb 7
Browse files Browse the repository at this point in the history
  • Loading branch information
nammn committed Nov 6, 2023
1 parent 4405a04 commit b4e111a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .action_templates/jobs/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ tests:
- test-name: replica_set_enterprise_upgrade_4_5
distro: ubi
- test-name: replica_set_enterprise_upgrade_5_6
distro: ubi.
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_recovery
distro: ubi
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
distro: ubi
- test-name: replica_set_enterprise_upgrade_5_6
distro: ubi
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_recovery
distro: ubi
- test-name: replica_set_mongod_readiness
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
distro: ubi
- test-name: replica_set_enterprise_upgrade_5_6
distro: ubi
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_recovery
distro: ubi
- test-name: replica_set_mongod_readiness
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/e2eutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func NewTestMongoDB(ctx *Context, name string, namespace string) (mdbv1.MongoDBC
Spec: mdbv1.MongoDBCommunitySpec{
Members: 3,
Type: "ReplicaSet",
Version: "6.0.5",
Version: "7.0.2",
Arbiters: 0,
Security: mdbv1.Security{
Authentication: mdbv1.Authentication{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package replica_set

import (
"fmt"
"os"
"testing"

e2eutil "github.com/mongodb/mongodb-kubernetes-operator/test/e2e"
"github.com/mongodb/mongodb-kubernetes-operator/test/e2e/replica_set_enterprise_upgrade"
)

var (
versionsForUpgrades = []string{"6.0.5", "7.0.2"}
)

func TestMain(m *testing.M) {
code, err := e2eutil.RunTest(m)
if err != nil {
fmt.Println(err)
}
os.Exit(code)
}

func TestReplicaSet(t *testing.T) {
replica_set_enterprise_upgrade.DeployEnterpriseAndUpgradeTest(t, versionsForUpgrades)
}

0 comments on commit b4e111a

Please sign in to comment.