diff --git a/test/e2e/clusterlocaldomaintls/cluster_local_domain_tls_test.go b/test/e2e/clusterlocaldomaintls/cluster_local_domain_tls_test.go index 7390e3a527bc..589e57d1439b 100644 --- a/test/e2e/clusterlocaldomaintls/cluster_local_domain_tls_test.go +++ b/test/e2e/clusterlocaldomaintls/cluster_local_domain_tls_test.go @@ -46,8 +46,9 @@ func TestClusterLocalDomainTLSClusterLocalVisibility(t *testing.T) { t.Skip("Alpha features not enabled") } - if !(strings.Contains(test.ServingFlags.IngressClass, "kourier")) { - t.Skip("Skip this test for non-kourier ingress.") + if !strings.Contains(test.ServingFlags.IngressClass, "kourier") && + !strings.Contains(test.ServingFlags.IngressClass, "contour") { + t.Skip("Skip this test for non-kourier/contour ingress.") } t.Parallel() @@ -96,8 +97,9 @@ func TestClusterLocalDomainTLSClusterExternalVisibility(t *testing.T) { t.Skip("Alpha features not enabled") } - if !(strings.Contains(test.ServingFlags.IngressClass, "kourier")) { - t.Skip("Skip this test for non-kourier ingress.") + if !strings.Contains(test.ServingFlags.IngressClass, "kourier") && + !strings.Contains(test.ServingFlags.IngressClass, "contour") { + t.Skip("Skip this test for non-kourier/contour ingress.") } t.Parallel() diff --git a/test/e2e/systeminternaltls/system_internal_tls_test.go b/test/e2e/systeminternaltls/system_internal_tls_test.go index 74e8e1413e96..6251b46a3099 100644 --- a/test/e2e/systeminternaltls/system_internal_tls_test.go +++ b/test/e2e/systeminternaltls/system_internal_tls_test.go @@ -51,9 +51,8 @@ func TestSystemInternalTLS(t *testing.T) { t.Skip("Alpha features not enabled") } - if !strings.Contains(test.ServingFlags.IngressClass, "kourier") || - strings.Contains(test.ServingFlags.IngressClass, "contour") { - + if !strings.Contains(test.ServingFlags.IngressClass, "kourier") && + !strings.Contains(test.ServingFlags.IngressClass, "contour") { t.Skip("Skip this test for non-kourier/contour ingress.") } @@ -118,8 +117,9 @@ func TestTLSCertificateRotation(t *testing.T) { t.Skip("Alpha features not enabled") } - if !(strings.Contains(test.ServingFlags.IngressClass, "kourier")) { - t.Skip("Skip this test for non-kourier ingress.") + if !strings.Contains(test.ServingFlags.IngressClass, "kourier") && + !strings.Contains(test.ServingFlags.IngressClass, "contour") { + t.Skip("Skip this test for non-kourier/contour ingress.") } t.Parallel()