From 274c81fee6945722995846c13fd3da29b78d86fc Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Thu, 20 Jan 2022 15:57:40 +0100 Subject: [PATCH] fix(e2e): Set NO_PROXY to wildcard for the environment trait tests --- e2e/common/traits/environment_test.go | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/e2e/common/traits/environment_test.go b/e2e/common/traits/environment_test.go index 1de91b5fec..1400572bdf 100644 --- a/e2e/common/traits/environment_test.go +++ b/e2e/common/traits/environment_test.go @@ -24,7 +24,6 @@ package traits import ( "fmt" - "os" "strings" "testing" @@ -41,26 +40,7 @@ func TestEnvironmentTrait(t *testing.T) { WithNewTestNamespace(t, func(ns string) { // HTTP proxy configuration httpProxy := "http://proxy" - noProxy := []string{ - ".cluster.local", - ".svc", - "localhost", - ".apache.org", - } - - // Retrieve the Kubernetes Service ClusterIPs to populate the NO_PROXY environment variable - svc := Service("default", "kubernetes")() - Expect(svc).NotTo(BeNil()) - - noProxy = append(noProxy, svc.Spec.ClusterIPs...) - - // Retrieve the internal container registry to populate the NO_PROXY environment variable - if registry, ok := os.LookupEnv("KAMEL_INSTALL_REGISTRY"); ok { - domain := RegistryRegexp.FindString(registry) - Expect(domain).NotTo(BeNil()) - domain = strings.Split(domain, ":")[0] - noProxy = append(noProxy, domain) - } + noProxy := []string{"*"} // Install Camel K with the HTTP proxy environment variable Expect(Kamel("install", "-n", ns,