Skip to content

Commit

Permalink
Skip FAR OutOfServiceTaint remediation test if it's not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
k-keiichi-rh committed Apr 7, 2024
1 parent 3b7e328 commit 908f415
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/far_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package e2e
import (
"context"
"math/rand"
"os"
"time"

commonConditions "github.com/medik8s/common/pkg/conditions"
Expand Down Expand Up @@ -44,6 +45,7 @@ const (
pollTaint = "100ms"
pollReboot = "1s"
pollAfterReboot = "250ms"
skipOOSREnvVarName = "SKIP_OOST_REMEDIATION_VERIFICATION"
)

var remediationTimes []time.Duration
Expand Down Expand Up @@ -121,6 +123,10 @@ var _ = Describe("FAR E2e", func() {
Context("stress cluster with OutOfServiceTaint remediation strategy", func() {
availableWorkerNodes := getAvailableWorkerNodes()
BeforeEach(func() {
if _, isExist := os.LookupEnv(skipOOSREnvVarName); isExist {
Skip("Skip this block due to out-of-service taint not supported")
}

selectedNode = pickRemediatedNode(availableWorkerNodes)
nodeName = selectedNode.Name
printNodeDetails(selectedNode, nodeIdentifierPrefix, testNodeParam)
Expand Down

0 comments on commit 908f415

Please sign in to comment.