test(agent): update tool registry test to match security policy
This commit is contained in:
@@ -22,6 +22,6 @@ class TestValidateToolSpec:
|
||||
def test_srv_namespace_with_backend_is_valid(self):
|
||||
validate_tool_spec({"name": "srv.search_docs", "execution_target": "backend"})
|
||||
|
||||
def test_other_namespace_is_valid(self):
|
||||
validate_tool_spec({"name": "other.tool", "execution_target": "frontend"})
|
||||
validate_tool_spec({"name": "other.tool", "execution_target": "backend"})
|
||||
def test_other_namespace_is_rejected(self):
|
||||
with pytest.raises(ValueError, match="must be in ui.* or srv.* namespace"):
|
||||
validate_tool_spec({"name": "other.tool", "execution_target": "frontend"})
|
||||
|
||||
Reference in New Issue
Block a user