Skip to content

Commit

Permalink
pkg/models: Update k8s version test
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Sep 30, 2024
1 parent ed6b90c commit 5b90607
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/models/config/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import (
)

func TestKubernetesVersion(t *testing.T) {
assert.NoError(t, KubernetesVersion("v1.27.0").Validate())
assert.NoError(t, KubernetesVersion("v1.27.5").Validate())
assert.NoError(t, KubernetesVersion("v1.28.0").Validate())
assert.NoError(t, KubernetesVersion("v1.28.5").Validate())
assert.NoError(t, KubernetesVersion("v1.30.0").Validate())
assert.ErrorContains(t, KubernetesVersion("v1.1.1").Validate(), "Unsupported Kubernetes version")
assert.ErrorContains(t, KubernetesVersion("v1.28.100").Validate(), "Unsupported Kubernetes version")
}
Expand Down

0 comments on commit 5b90607

Please sign in to comment.