mirror of https://github.com/k3s-io/k3s.git
Remove broken unused windows test
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 8f85ee3c60
)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/11764/head
parent
db5f64397d
commit
bf9c68ec6d
|
@ -1,47 +0,0 @@
|
|||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package agent
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/k3s-io/k3s/pkg/daemons/config"
|
||||
)
|
||||
|
||||
func TestCheckRuntimeEndpoint(t *testing.T) {
|
||||
type args struct {
|
||||
cfg *config.Agent
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
want string
|
||||
}{
|
||||
{
|
||||
name: "Runtime endpoint unaltered",
|
||||
args: args{
|
||||
cfg: &config.Agent{RuntimeSocket: "npipe:////./pipe/containerd-containerd"},
|
||||
},
|
||||
want: "npipe:////./pipe/containerd-containerd",
|
||||
},
|
||||
{
|
||||
name: "Runtime endpoint altered",
|
||||
args: args{
|
||||
cfg: &config.Agent{RuntimeSocket: "//./pipe/containerd-containerd"},
|
||||
},
|
||||
want: "npipe:////./pipe/containerd-containerd",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
argsMap := map[string]string{}
|
||||
if argsMap["container-runtime-endpoint"] != tt.want {
|
||||
got := argsMap["container-runtime-endpoint"]
|
||||
t.Errorf("error, input was " + tt.args.cfg.RuntimeSocket + " should be " + tt.want + ", but got " + got)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue