From eb96b30baa2288aac49a31952a05eb6675383699 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Mon, 7 Jun 2021 23:11:49 +0900 Subject: [PATCH] Add root ca for Controller HA test with https (#11471) This patch adds `test.AddRootCAtoTransport` for prober in TestControllerHA. --- test/ha/controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ha/controller_test.go b/test/ha/controller_test.go index c5f38d4b49e5..e75e68bbeb10 100644 --- a/test/ha/controller_test.go +++ b/test/ha/controller_test.go @@ -54,7 +54,7 @@ func TestControllerHA(t *testing.T) { service1Names, resources := createPizzaPlanetService(t) test.EnsureTearDown(t, clients, &service1Names) - prober := test.RunRouteProber(t.Logf, clients, resources.Service.Status.URL.URL()) + prober := test.RunRouteProber(t.Logf, clients, resources.Service.Status.URL.URL(), test.AddRootCAtoTransport(context.Background(), t.Logf, clients, test.ServingFlags.HTTPS)) defer test.AssertProberDefault(t, prober) for _, leader := range leaders.List() {