|
|
|
@ -42,19 +42,19 @@ func TestDefaultVersionSet(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
func TestDefaultCapabilities(t *testing.T) {
|
|
|
|
|
kv := DefaultCapabilities.KubeVersion
|
|
|
|
|
if kv.String() != "v1.16.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.String() to be v1.16.0, got %q", kv.String())
|
|
|
|
|
if kv.String() != "v1.18.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.String() to be v1.18.0, got %q", kv.String())
|
|
|
|
|
}
|
|
|
|
|
if kv.Version != "v1.16.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.Version to be v1.16.0, got %q", kv.Version)
|
|
|
|
|
if kv.Version != "v1.18.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.Version to be v1.18.0, got %q", kv.Version)
|
|
|
|
|
}
|
|
|
|
|
if kv.GitVersion() != "v1.16.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.GitVersion() to be v1.16.0, got %q", kv.Version)
|
|
|
|
|
if kv.GitVersion() != "v1.18.0" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.GitVersion() to be v1.18.0, got %q", kv.Version)
|
|
|
|
|
}
|
|
|
|
|
if kv.Major != "1" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.Major to be 1, got %q", kv.Major)
|
|
|
|
|
}
|
|
|
|
|
if kv.Minor != "16" {
|
|
|
|
|
if kv.Minor != "18" {
|
|
|
|
|
t.Errorf("Expected default KubeVersion.Minor to be 16, got %q", kv.Minor)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|