From 908f415412ff8192677f82004de3a94fa9565c35 Mon Sep 17 00:00:00 2001 From: Keiichi Kii Date: Sun, 7 Apr 2024 13:13:30 -0400 Subject: [PATCH] Skip FAR OutOfServiceTaint remediation test if it's not supported --- test/e2e/far_e2e_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/e2e/far_e2e_test.go b/test/e2e/far_e2e_test.go index 0cee50f5..47bb6bdd 100644 --- a/test/e2e/far_e2e_test.go +++ b/test/e2e/far_e2e_test.go @@ -3,6 +3,7 @@ package e2e import ( "context" "math/rand" + "os" "time" commonConditions "github.com/medik8s/common/pkg/conditions" @@ -44,6 +45,7 @@ const ( pollTaint = "100ms" pollReboot = "1s" pollAfterReboot = "250ms" + skipOOSREnvVarName = "SKIP_OOST_REMEDIATION_VERIFICATION" ) var remediationTimes []time.Duration @@ -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)