fixup! feat(mcp)!: a second transport, and the token it exists for
This commit is contained in:
1 parent
0e810ac99b
commit
385a5e6581
1 file changed
+3
-3
@@ -260,9 +260,9 @@ testers.runNixOSTest (
|
||||
|
||||
with subtest("the whole surface is offered to an unscoped token"):
|
||||
listed = http("--list", token=token)["tools"]
|
||||
assert len(listed) == 21, f"{len(listed)} tools, expected 21"
|
||||
assert len(listed) == 23, f"{len(listed)} tools, expected 23"
|
||||
fixed = http("--resources", token=token)["resources"]
|
||||
assert len(fixed) == 5, f"{len(fixed)} resources, expected 5"
|
||||
assert len(fixed) == 6, f"{len(fixed)} resources, expected 6"
|
||||
|
||||
with subtest("a resource read reaches the broker"):
|
||||
contents = http("--read hhstream://sessions", token=token)["contents"]
|
||||
@@ -289,7 +289,7 @@ testers.runNixOSTest (
|
||||
# The two tokens are served by ONE process, which is the whole
|
||||
# argument for putting toolsets on the token rather than only on
|
||||
# the command line: a launch-time flag cannot do this.
|
||||
assert len(http("--list", token=token)["tools"]) == 21
|
||||
assert len(http("--list", token=token)["tools"]) == 23
|
||||
|
||||
with subtest("token list shows both and neither secret"):
|
||||
out = machine.succeed(as_user(f"{MCP} token list"), timeout=120)
|
||||
|
||||
Reference in new issue
Block a user