Skip to content

Commit

Permalink
test: check nodes for current context
Browse files Browse the repository at this point in the history
  • Loading branch information
strowk committed Dec 15, 2024
1 parent 2e03d93 commit 0d9df27
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions testdata/with_k3d/list_k8s_nodes_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,36 @@ out:
"isError": false,
},
}

---

case: List nodes using tool with current context

in:
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params":
{
"name": "list-k8s-nodes",
},
}
out:
{
"jsonrpc": "2.0",
"id": 2,
"result":
{
"content":
[
{
"type": "text",
"text": !!ere '{"name":"k3d-mcp-k8s-integration-test-server-0","status":"Ready","age":"/[0-9sm]{2,4}/","created_at":"/.+/"}',
# ^ this is a pattern, this ^ too
# this just to match a duration // and this is for timestamp
}
],
"isError": false,
},
}

0 comments on commit 0d9df27

Please sign in to comment.