Skip to content

Commit 1575d36

Browse files
committed
C2 test: verify IdP reachability check went through Squid proxy
1 parent 4ef76db commit 1575d36

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/e2e-component-proxy/component_proxy.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func testWarningOnUnreachableIdP() {
289289
o.Expect(err).NotTo(o.HaveOccurred())
290290

291291
g.By("Deploying Squid forward proxy")
292-
proxyHostPort, _, _, squidCleanup := test.DeploySquidProxy(t, clients.KubeClient)
292+
proxyHostPort, _, proxyNamespace, squidCleanup := test.DeploySquidProxy(t, clients.KubeClient)
293293
g.DeferCleanup(func() {
294294
g.GinkgoWriter.Println("cleaning up: removing Squid proxy")
295295
squidCleanup()
@@ -382,6 +382,10 @@ func testWarningOnUnreachableIdP() {
382382
})
383383
o.Expect(err).NotTo(o.HaveOccurred(), "IdPEndpointUnreachable warning event was not emitted")
384384

385+
g.By("Verifying the request went through the Squid proxy")
386+
err = test.WaitForSquidProxyTraffic(t, clients.KubeClient, proxyNamespace, 2*time.Minute)
387+
o.Expect(err).NotTo(o.HaveOccurred())
388+
385389
g.By("Verifying operator is NOT Degraded")
386390
ok, conditions, checkErr := test.CheckClusterOperatorStatus(t, ctx, clients.ConfigClient.ConfigV1(), "authentication",
387391
configv1.ClusterOperatorStatusCondition{Type: configv1.OperatorDegraded, Status: configv1.ConditionFalse},

0 commit comments

Comments
 (0)