Skip to content

Commit

Permalink
Skip test if out-of-service taint is not supporeted
Browse files Browse the repository at this point in the history
  • Loading branch information
k-keiichi-rh committed Dec 21, 2023
1 parent ac248dd commit e303270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/self_node_remediation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
nodeExecTimeout = 20 * time.Second
reconnectInterval = 300 * time.Second
skipLogsEnvVarName = "SKIP_LOG_VERIFICATION"
skipOOSREnvVarName = "SKIP_OOST_REMEDIATION_VERIFICATION"
)

var _ = Describe("Self Node Remediation E2E", func() {
Expand Down Expand Up @@ -365,6 +366,9 @@ var _ = Describe("Self Node Remediation E2E", func() {
var oldPodCreationTime time.Time

BeforeEach(func() {
if _, isExist := os.LookupEnv(skipOOSREnvVarName); isExist {
Skip("Skip this test due to out-of-service taint not supported")
}
remediationStrategy = v1alpha1.OutOfServiceTaintRemediationStrategy
oldPodCreationTime = findSnrPod(controlPlaneNode).CreationTimestamp.Time
})
Expand Down

0 comments on commit e303270

Please sign in to comment.