From d852c0807b4221ca14f75034c90fe93263fbd874 Mon Sep 17 00:00:00 2001 From: Andrey Lebedev Date: Fri, 24 Jan 2025 18:25:58 +0100 Subject: [PATCH] OCPBUGS-43745: Skip Test_IdleConnectionTerminationPolicyDeferred when 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. --- test/e2e/idle_connection_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/e2e/idle_connection_test.go b/test/e2e/idle_connection_test.go index 034d3acd5..623253de8 100644 --- a/test/e2e/idle_connection_test.go +++ b/test/e2e/idle_connection_test.go @@ -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" ) @@ -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",