mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #110736 from Octopusjust/k8s-pr3
Incomplete coverage of test scenarios
This commit is contained in:
commit
df0af6f7b8
@ -34,6 +34,9 @@ func TestGetKubeletVersion(t *testing.T) {
|
||||
}{
|
||||
{"Kubernetes v1.7.0", "1.7.0", nil, true},
|
||||
{"Kubernetes v1.8.0-alpha.2.1231+afabd012389d53a", "1.8.0-alpha.2.1231+afabd012389d53a", nil, true},
|
||||
{"Kubernetes v1.8.0-alpha.2.1231+afabd012389d53a ", "1.8.0-alpha.2.1231+afabd012389d53a", nil, true},
|
||||
{" Kubernetes v1.8.0-alpha.2.1231+afabd012389d53a", "1.8.0-alpha.2.1231+afabd012389d53a", nil, true},
|
||||
{"Kubernetes v1.8.0-alpha.2.1231+afabd012389d53a", "", nil, false},
|
||||
{"something-invalid", "", nil, false},
|
||||
{"command not found", "", errors.New("kubelet not found"), false},
|
||||
{"", "", nil, false},
|
||||
|
Loading…
Reference in New Issue
Block a user