Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8f85ee3c
Commit
8f85ee3c
authored
Feb 05, 2025
by
Brad Davidson
Committed by
Brad Davidson
Feb 07, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove broken unused windows test
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
4cacf6e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
agent_windows_test.go
pkg/daemons/agent/agent_windows_test.go
+0
-47
No files found.
pkg/daemons/agent/agent_windows_test.go
deleted
100644 → 0
View file @
4cacf6e1
//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
)
}
})
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment