Skip to content

Commit

Permalink
Fix tests for new K0s format
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Jul 25, 2023
1 parent 29f98a7 commit 41ed7ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,20 +641,20 @@ func Test_DownloadK0s(t *testing.T) {
tests := []test{
{os: "linux",
arch: arch64bit,
version: "v1.21.4+k3s1",
url: "https://github.com/k0sproject/k0s/releases/download/v1.21.4+k3s1/k0s-v1.21.4+k3s1-amd64"},
version: "v1.27.4+k0s.0",
url: "https://github.com/k0sproject/k0s/releases/download/v1.27.4+k0s.0/k0s-v1.27.4+k0s.0-amd64"},
{os: "linux",
arch: "aarch64",
version: "v1.21.4+k3s1",
url: "https://github.com/k0sproject/k0s/releases/download/v1.21.4+k3s1/k0s-v1.21.4+k3s1-arm64"},
version: "v1.27.4+k0s.0",
url: "https://github.com/k0sproject/k0s/releases/download/v1.27.4+k0s.0/k0s-v1.27.4+k0s.0-arm64"},
}
for _, tc := range tests {
got, err := tool.GetURL(tc.os, tc.arch, tc.version, false)
if err != nil {
t.Fatal(err)
}
if got != tc.url {
t.Fatalf("want: %s, got: %s", tc.url, got)
t.Fatalf("want:\n%q, got:\n%q", tc.url, got)
}
}
}
Expand Down

0 comments on commit 41ed7ec

Please sign in to comment.