Skip to content

Commit

Permalink
Remove duplicate kumactl test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jun 29, 2022
1 parent 24afdfb commit 3b41adb
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3409,13 +3409,6 @@ func Test_DownloadSOPS(t *testing.T) {
t.Errorf("want: %s, got: %s", tc.url, got)
}
})
got, err := tool.GetURL(tc.os, tc.arch, tc.version, false)
if err != nil {
t.Fatal(err)
}
if got != tc.url {
t.Errorf("want: %s, got: %s", tc.url, got)
}
}
}

Expand Down Expand Up @@ -3584,37 +3577,3 @@ func Test_DownloadDagger(t *testing.T) {
}
}
}

func Test_DownloadKumactl(t *testing.T) {
tools := MakeTools()
name := "kumactl"

tool := getTool(name, tools)

tests := []test{
{
os: "darwin",
arch: arch64bit,
version: "1.4.1",
url: "https://download.konghq.com/mesh-alpine/kuma-1.4.1-darwin-amd64.tar.gz",
},
{
os: "linux",
arch: arch64bit,
version: "1.4.1",
url: "https://download.konghq.com/mesh-alpine/kuma-1.4.1-ubuntu-amd64.tar.gz",
},
}

for _, tc := range tests {
t.Run(tc.os+" "+tc.arch+" "+tc.version, func(r *testing.T) {
got, err := tool.GetURL(tc.os, tc.arch, tc.version, false)
if err != nil {
t.Fatal(err)
}
if got != tc.url {
t.Errorf("want: %s, got: %s", tc.url, got)
}
})
}
}

0 comments on commit 3b41adb

Please sign in to comment.