Skip to content

Commit 0731732

Browse files
author
corneredrat
committed
update expected results
1 parent e6ab24d commit 0731732

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pkg/healthchecker/types/types_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,49 +109,49 @@ func TestKubeEndpointConfiguration(t *testing.T) {
109109
{
110110
name: "no overrides supplied",
111111
envConfig: map[string]string{},
112-
expectedKubeletEndpoint: "http://127.0.0.1:10248",
113-
expectedKubeProxyEndpoint: "http://127.0.0.1:10256",
112+
expectedKubeletEndpoint: "http://127.0.0.1:10248/healthz",
113+
expectedKubeProxyEndpoint: "http://127.0.0.1:10256/healthz",
114114
}, {
115115
name: "HOST_ADDRESS override supplied",
116116
envConfig: map[string]string{
117117
"HOST_ADDRESS": "samplehost.testdomain.com",
118118
},
119-
expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248",
120-
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256",
119+
expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248/healthz",
120+
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256/healthz",
121121
},
122122
{
123123
name: "KUBELET_PORT override supplied",
124124
envConfig: map[string]string{
125125
"KUBELET_PORT": "12345",
126126
},
127-
expectedKubeletEndpoint: "http://127.0.0.1:12345",
128-
expectedKubeProxyEndpoint: "http://127.0.0.1:10256",
127+
expectedKubeletEndpoint: "http://127.0.0.1:12345/healthz",
128+
expectedKubeProxyEndpoint: "http://127.0.0.1:10256/healthz",
129129
},
130130
{
131131
name: "KUBEPROXY_PORT override supplied",
132132
envConfig: map[string]string{
133133
"KUBEPROXY_PORT": "12345",
134134
},
135-
expectedKubeletEndpoint: "http://127.0.0.1:10248",
136-
expectedKubeProxyEndpoint: "http://127.0.0.1:12345",
135+
expectedKubeletEndpoint: "http://127.0.0.1:10248/healthz",
136+
expectedKubeProxyEndpoint: "http://127.0.0.1:12345/healthz",
137137
},
138138
{
139139
name: "HOST_ADDRESS and KUBELET_PORT override supplied",
140140
envConfig: map[string]string{
141141
"HOST_ADDRESS": "samplehost.testdomain.com",
142142
"KUBELET_PORT": "12345",
143143
},
144-
expectedKubeletEndpoint: "http://samplehost.testdomain.com:12345",
145-
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256",
144+
expectedKubeletEndpoint: "http://samplehost.testdomain.com:12345/healthz",
145+
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:10256/healthz",
146146
},
147147
{
148148
name: "HOST_ADDRESS and KUBEPROXY_PORT override supplied",
149149
envConfig: map[string]string{
150150
"HOST_ADDRESS": "samplehost.testdomain.com",
151151
"KUBEPROXY_PORT": "12345",
152152
},
153-
expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248",
154-
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:12345",
153+
expectedKubeletEndpoint: "http://samplehost.testdomain.com:10248/healthz",
154+
expectedKubeProxyEndpoint: "http://samplehost.testdomain.com:12345/healthz",
155155
},
156156
{
157157
name: "HOST_ADDRESS, KUBELET_PORT and KUBEPROXY_PORT override supplied",
@@ -160,8 +160,8 @@ func TestKubeEndpointConfiguration(t *testing.T) {
160160
"KUBELET_PROXY": "12345",
161161
"KUBEPROXY_PORT": "12346",
162162
},
163-
expectedKubeletEndpoint: "http://10.0.10.1:12345",
164-
expectedKubeProxyEndpoint: "http://10.0.10.1:12346",
163+
expectedKubeletEndpoint: "http://10.0.10.1:12345/healthz",
164+
expectedKubeProxyEndpoint: "http://10.0.10.1:12346/healthz",
165165
},
166166
}
167167
for _, test := range testCases {

0 commit comments

Comments
 (0)