Skip to content

Commit bea026a

Browse files
committed
test: support for 1.24 toolchain
1 parent fafdf9a commit bea026a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cmd/kubernetes-mcp-server/main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import (
44
"os"
55
)
66

7-
//goland:noinspection GoTestName
8-
func ExampleVersion() {
7+
func Example_version() {
98
oldArgs := os.Args
109
defer func() { os.Args = oldArgs }()
1110
os.Args = []string{"kubernetes-mcp-server", "--version"}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/manusa/kubernetes-mcp-server
22

3-
go 1.23.5
3+
go 1.24.1
44

55
require (
66
github.com/fsnotify/fsnotify v1.8.0

pkg/mcp/namespaces_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@ func TestProjectsListInOpenShift(t *testing.T) {
5151
defer c.inOpenShift()() // n.b. two sets of parentheses to invoke the first function
5252
c.mcpServer.server.AddTools(c.mcpServer.initNamespaces()...)
5353
dynamicClient := dynamic.NewForConfigOrDie(envTestRestConfig)
54-
_, err := dynamicClient.Resource(schema.GroupVersionResource{Group: "project.openshift.io", Version: "v1", Resource: "projects"}).
54+
_, _ = dynamicClient.Resource(schema.GroupVersionResource{Group: "project.openshift.io", Version: "v1", Resource: "projects"}).
5555
Create(c.ctx, &unstructured.Unstructured{Object: map[string]interface{}{
5656
"apiVersion": "project.openshift.io/v1",
5757
"kind": "Project",
5858
"metadata": map[string]interface{}{
5959
"name": "an-openshift-project",
6060
},
6161
}}, metav1.CreateOptions{})
62-
println(err)
6362
toolResult, err := c.callTool("projects_list", map[string]interface{}{})
6463
t.Run("projects_list returns project list", func(t *testing.T) {
6564
if err != nil {

0 commit comments

Comments
 (0)