mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-02 01:30:26 +00:00
update expected results
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user