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 18, 2024
1 parent d8da19b commit 45d1fb9
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 @@ -124,6 +126,10 @@ var _ = Describe("FAR E2e", func() {
Context("stress cluster with OutOfServiceTaint remediation strategy", func() {
var availableWorkerNodes *corev1.NodeList
BeforeEach(func() {
if _, isExist := os.LookupEnv(skipOOSREnvVarName); isExist {
Skip("Skip this block due to out-of-service taint not supported")
}

if availableWorkerNodes == nil {
availableWorkerNodes = getAvailableWorkerNodes()
}
Expand Down

0 comments on commit 45d1fb9

Please sign in to comment.