Skip to content

Commit

Permalink
OCPBUGS-43745: Skip Test_IdleConnectionTerminationPolicyDeferred when…
Browse files Browse the repository at this point in the history
… DCM feature gate is enabled

The DCM enabled router returns 503 error after a service change on a
route when idle-close-on-response option is enabled and the client
reuses connections. Ref: https://issues.redhat.com/browse/OCPBUGS-48560.
  • Loading branch information
alebedev87 committed Jan 29, 2025
1 parent 6ac3b9f commit d852c08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/e2e/idle_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"k8s.io/client-go/util/retry"
"sigs.k8s.io/controller-runtime/pkg/client"

"github.com/openshift/api/features"

operatorv1 "github.com/openshift/api/operator/v1"
routev1 "github.com/openshift/api/route/v1"
)
Expand Down Expand Up @@ -595,6 +597,13 @@ func Test_IdleConnectionTerminationPolicyImmediate(t *testing.T) {
func Test_IdleConnectionTerminationPolicyDeferred(t *testing.T) {
t.Parallel()

if dcmEnabled, err := isFeatureGateEnabled(features.FeatureGateIngressControllerDynamicConfigurationManager); err != nil {
t.Fatalf("failed to get dynamic config manager feature gate: %v", err)
} else if dcmEnabled {
// Ref: https://issues.redhat.com/browse/OCPBUGS-48560
t.Skipf("Skipping Test_IdleConnectionTerminationPolicyDeferred when DynamicConfigurationManager feature gate is enabled until OCPBUGS-48560 is fixed")
}

idleConnectionTerminationPolicyRunTest(t, operatorv1.IngressControllerConnectionTerminationPolicyDeferred, []idleConnectionTestAction{
{
description: "Verify the initial response is correctly served by web-service-1",
Expand Down

0 comments on commit d852c08

Please sign in to comment.