Skip to content

Commit 4fea0cf

Browse files
fix testPartialFullProxyEnvVars()
1 parent d753a8f commit 4fea0cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/e2e-component-proxy/component_proxy_oidc_login.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func testPartialFullProxyEnvVars() {
135135

136136
g.By("Setting only httpsProxy in component proxy config")
137137
operatorAuth.Spec.Proxy = operatorv1.AuthenticationProxyConfig{
138-
HTTPSProxy: httpsProxyURL,
138+
HTTPSProxy: httpProxyURL,
139139
}
140140
_, err = clients.OperatorClient.OperatorV1().Authentications().Update(ctx, operatorAuth, metav1.UpdateOptions{})
141141
o.Expect(err).NotTo(o.HaveOccurred())
@@ -145,7 +145,7 @@ func testPartialFullProxyEnvVars() {
145145
o.Expect(err).NotTo(o.HaveOccurred())
146146

147147
g.By("Verifying oauth-server has HTTPS_PROXY but not HTTP_PROXY")
148-
test.VerifyOAuthServerDeploymentProxyConfig(t, clients.KubeClient, "", httpsProxyURL, "", false)
148+
test.VerifyOAuthServerDeploymentProxyConfig(t, clients.KubeClient, "", httpProxyURL, ".cluster.local,.svc,127.0.0.1,localhost", false)
149149

150150
configMapName := "e2e-proxy-trusted-ca"
151151
caConfigMap := &corev1.ConfigMap{
@@ -187,7 +187,7 @@ func testPartialFullProxyEnvVars() {
187187
o.Expect(err).NotTo(o.HaveOccurred())
188188

189189
g.By("Verifying oauth-server has HTTP_PROXY, HTTPS_PROXY, and NO_PROXY with custom entry")
190-
test.VerifyOAuthServerDeploymentProxyConfig(t, clients.KubeClient, httpProxyURL, httpsProxyURL, noProxyHost, true)
190+
test.VerifyOAuthServerDeploymentProxyConfig(t, clients.KubeClient, httpProxyURL, httpsProxyURL, ".cluster.local,.svc,127.0.0.1,localhost,noproxy.example.com", true)
191191
}
192192

193193
func testProxyOIDCLoginFlow() {

0 commit comments

Comments
 (0)