feat(clients): registry: Agent Registry, Agent Gateway, Agent Identity from discovery call table
86-row call table checked against Google discovery documents, typed services, local approval ledger, live read-only tests, /agent/registry demo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Route: POST /agent/registry/list
|
||||
#include "agent/registry/cases.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
check_google_post_route("/agent/registry/list",
|
||||
"{\"kind\":\"agents\"}",
|
||||
"{\"kind\":\"widgets\"}",
|
||||
"unknown collection");
|
||||
{
|
||||
GoogleRig rig;
|
||||
Fixture f(rig.client);
|
||||
check(f.client->post("/agent/registry/list", "{\"kind\":\"aiApplications\"}", "application/json").status == 422,
|
||||
"limit: a collection that is not listable here is 422");
|
||||
check(f.client->post("/agent/registry/list", "", "application/json").status == 422, "empty body is 422");
|
||||
}
|
||||
return finish("agent/registry/list");
|
||||
}
|
||||
Reference in New Issue
Block a user