Skip to content

Commit

Permalink
Revert "Disable e2e verification for NoCreatorRBAC annotation in AWS …
Browse files Browse the repository at this point in the history
…and Azure"
  • Loading branch information
Danil-Grigorev authored Dec 2, 2024
1 parent ea62861 commit b485326
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions test/e2e/specs/import_gitops_mgmtv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
"github.com/rancher/turtles/test/e2e"
turtlesframework "github.com/rancher/turtles/test/framework"
"github.com/rancher/turtles/test/testenv"
turtlesannotations "github.com/rancher/turtles/util/annotations"
)

type CreateMgmtV3UsingGitOpsSpecInput struct {
Expand Down Expand Up @@ -137,13 +138,12 @@ func CreateMgmtV3UsingGitOpsSpec(ctx context.Context, inputGetter func() CreateM
}, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())
By("Waiting for the rancher cluster to be ready")

// TODO: re-enable the check after rancher 2.10 update and verified existence of the annotation
// By("Rancher cluster should have the 'NoCreatorRBAC' annotation")
// Eventually(func() bool {
// Eventually(komega.Get(rancherCluster), input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(Succeed())
// _, found := rancherCluster.Annotations[turtlesannotations.NoCreatorRBACAnnotation]
// return found
// }, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())
By("Rancher cluster should have the 'NoCreatorRBAC' annotation")
Eventually(func() bool {
Eventually(komega.Get(rancherCluster), input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(Succeed())
_, found := rancherCluster.Annotations[turtlesannotations.NoCreatorRBACAnnotation]
return found
}, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())

By("Waiting for the CAPI cluster to be connectable using Rancher kubeconfig")
turtlesframework.RancherGetClusterKubeconfig(ctx, turtlesframework.RancherGetClusterKubeconfigInput{
Expand Down
14 changes: 7 additions & 7 deletions test/e2e/specs/migrate_gitops_provv1_mgmtv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import (
"github.com/rancher/turtles/test/e2e"
turtlesframework "github.com/rancher/turtles/test/framework"
"github.com/rancher/turtles/test/testenv"
turtlesannotations "github.com/rancher/turtles/util/annotations"
turtlesnaming "github.com/rancher/turtles/util/naming"
)

Expand Down Expand Up @@ -176,13 +177,12 @@ func MigrateToV3UsingGitOpsSpec(ctx context.Context, inputGetter func() MigrateT
return conditions.IsTrue(rancherCluster, managementv3.ClusterConditionReady)
}, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())

// TODO: re-enable the check after rancher 2.10 update and verified existence of the annotation
// By("Rancher cluster should have the 'NoCreatorRBAC' annotation")
// Eventually(func() bool {
// Eventually(komega.Get(rancherCluster), input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(Succeed())
// _, found := rancherCluster.Annotations[turtlesannotations.NoCreatorRBACAnnotation]
// return found
// }, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())
By("Rancher cluster should have the 'NoCreatorRBAC' annotation")
Eventually(func() bool {
Eventually(komega.Get(rancherCluster), input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(Succeed())
_, found := rancherCluster.Annotations[turtlesannotations.NoCreatorRBACAnnotation]
return found
}, input.E2EConfig.GetIntervals(input.BootstrapClusterProxy.GetName(), "wait-rancher")...).Should(BeTrue())

By("Waiting for the CAPI cluster to be connectable using Rancher kubeconfig")
turtlesframework.RancherGetClusterKubeconfig(ctx, turtlesframework.RancherGetClusterKubeconfigInput{
Expand Down

0 comments on commit b485326

Please sign in to comment.