From e6ab24db7f5ef6be66ea9a708b9d6c3ecd8c9617 Mon Sep 17 00:00:00 2001 From: corneredrat Date: Thu, 9 Feb 2023 21:38:31 +0530 Subject: [PATCH] update expected results --- pkg/healthchecker/types/types_test.go | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkg/healthchecker/types/types_test.go b/pkg/healthchecker/types/types_test.go index 9b2a6098..a9576fa3 100644 --- a/pkg/healthchecker/types/types_test.go +++ b/pkg/healthchecker/types/types_test.go @@ -109,31 +109,31 @@ func TestKubeEndpointConfiguration(t *testing.T) { { name: "no overrides supplied", envConfig: map[string]string{}, - expectedKubeletEndpoint: "127.0.0.1:10248", - expectedKubeProxyEndpoint: "127.0.0.1:10256", + expectedKubeletEndpoint: "http://127.0.0.1:10248", + expectedKubeProxyEndpoint: "http://127.0.0.1:10256", }, { name: "HOST_ADDRESS override supplied", envConfig: map[string]string{ "HOST_ADDRESS": "samplehost.testdomain.com", }, - expectedKubeletEndpoint: "samplehost.testdomain.com:10248", - expectedKubeProxyEndpoint: "samplehost.testdomain.com:10256", + expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248", + expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256", }, { name: "KUBELET_PORT override supplied", envConfig: map[string]string{ "KUBELET_PORT": "12345", }, - expectedKubeletEndpoint: "127.0.0.1:12345", - expectedKubeProxyEndpoint: "127.0.0.1:10256", + expectedKubeletEndpoint: "http://127.0.0.1:12345", + expectedKubeProxyEndpoint: "http://127.0.0.1:10256", }, { name: "KUBEPROXY_PORT override supplied", envConfig: map[string]string{ "KUBEPROXY_PORT": "12345", }, - expectedKubeletEndpoint: "127.0.0.1:10248", - expectedKubeProxyEndpoint: "127.0.0.1:12345", + expectedKubeletEndpoint: "http://127.0.0.1:10248", + expectedKubeProxyEndpoint: "http://127.0.0.1:12345", }, { name: "HOST_ADDRESS and KUBELET_PORT override supplied", @@ -141,8 +141,8 @@ func TestKubeEndpointConfiguration(t *testing.T) { "HOST_ADDRESS": "samplehost.testdomain.com", "KUBELET_PORT": "12345", }, - expectedKubeletEndpoint: "samplehost.testdomain.com:12345", - expectedKubeProxyEndpoint: "samplehost.testdomain.com:10256", + expectedKubeletEndpoint: "http://samplehost.testdomain.com:12345", + expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256", }, { name: "HOST_ADDRESS and KUBEPROXY_PORT override supplied", @@ -150,8 +150,8 @@ func TestKubeEndpointConfiguration(t *testing.T) { "HOST_ADDRESS": "samplehost.testdomain.com", "KUBEPROXY_PORT": "12345", }, - expectedKubeletEndpoint: "samplehost.testdomain.com:10248", - expectedKubeProxyEndpoint: "samplehost.testdomain.com:12345", + expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248", + expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:12345", }, { name: "HOST_ADDRESS, KUBELET_PORT and KUBEPROXY_PORT override supplied", @@ -160,8 +160,8 @@ func TestKubeEndpointConfiguration(t *testing.T) { "KUBELET_PROXY": "12345", "KUBEPROXY_PORT": "12346", }, - expectedKubeletEndpoint: "10.0.10.1:12345", - expectedKubeProxyEndpoint: "10.0.10.1:12346", + expectedKubeletEndpoint: "http://10.0.10.1:12345", + expectedKubeProxyEndpoint: "http://10.0.10.1:12346", }, } for _, test := range testCases {