Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit 3a7cbd4

Browse files
committed
fix tests
1 parent 863c945 commit 3a7cbd4

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.16
55
require (
66
cdr.dev/slog v1.4.1
77
github.com/Masterminds/semver/v3 v3.1.1
8-
github.com/davecgh/go-spew v1.1.1
98
github.com/spf13/cobra v1.2.1
109
k8s.io/apimachinery v0.19.13
1110
k8s.io/client-go v0.19.13

internal/checks/kubernetes/version_test.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestVersions(t *testing.T) {
4242
ExpectedResult: &api.CheckResult{
4343
Name: "kubernetes-version",
4444
State: api.StatePassed,
45-
Summary: "",
45+
Summary: "Coder 1.21.0 supports Kubernetes 1.19.0 to 1.22.0 (server version 1.20.8-gke.900)",
4646
Details: map[string]interface{}{
4747
"build-date": "2021-06-30T09:23:36Z",
4848
"compiler": "gc",
@@ -70,6 +70,22 @@ func TestVersions(t *testing.T) {
7070
Compiler: "gc",
7171
Platform: "linux/amd64",
7272
},
73+
ExpectedResult: &api.CheckResult{
74+
Name: "kubernetes-version",
75+
State: 2,
76+
Summary: "Coder 1.21.0 supports Kubernetes 1.19.0 to 1.22.0 and was not tested with 1.18.20-gke.900",
77+
Details: map[string]interface{}{
78+
"build-date": "2021-06-28T09:19:58Z",
79+
"compiler": "gc",
80+
"git-commit": "1facb91642e16cb4f5be4e4a632c488aa4700382",
81+
"git-tree-state": "clean",
82+
"git-version": "v1.18.20-gke.900",
83+
"go-version": "go1.13.15b4",
84+
"major": "1",
85+
"minor": "18+",
86+
"platform": "linux/amd64",
87+
},
88+
},
7389
},
7490
}
7591

0 commit comments

Comments
 (0)