From 617d941e3fbf3e3ada8ffd925ad62ef59daca81e Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Mon, 7 Jun 2021 09:20:41 +0900 Subject: [PATCH] Add root ca for Controller HA test with https 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() {