sessions: operations get/list/cancel/delete/wait for engine, session, memory and serving profile; servingProfiles CRUD. registry: ListResult with truncated flag, v1alpha twins, gateway/policy operations, authz IAM, deny policy update, boundary patch/bindings. optimize: make_gemini_model over models::VertexModel (DirectModel removed), generateSyntheticData, online evaluator operations, trace/log writers. armor: SecurityAdmin for all SCC v2 methods (attack exposure excluded), documented agent threat categories, floor settings fixed to location global after live run. check_discovery.py of all four enforce coverage. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
31 lines
1.2 KiB
C++
31 lines
1.2 KiB
C++
// Route: GET /agent/registry/status
|
|
#include "support/GoogleRig.hpp"
|
|
#include <cstdlib>
|
|
|
|
using namespace molo::example::test;
|
|
using molo::example::fw::Method;
|
|
|
|
int main() {
|
|
setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1);
|
|
{
|
|
GoogleRig rig(false);
|
|
Fixture f(rig.client);
|
|
auto res = f.client->get("/agent/registry/status");
|
|
check(res.status == 200, "status 200 without a credential");
|
|
check(contains(res.headers.get("Content-Type"), "application/json"), "json");
|
|
check(contains(res.body, "\"configured\":false") && contains(res.body, "\"project_set\":true"), "state shown");
|
|
check(contains(res.body, "\"max_ledger_entries\":5000"), "caps shown");
|
|
check(contains(res.body, "\"max_items\":1000"), "the list item cap is stated");
|
|
check(rig.mock->send_count() == 0, "side effect: no upstream traffic");
|
|
}
|
|
{
|
|
GoogleRig rig;
|
|
Fixture f(rig.client);
|
|
auto res = f.client->get("/agent/registry/status");
|
|
check(contains(res.body, "\"configured\":true"), "configured with a credential");
|
|
check(!contains(res.body, kTestKey), "credential never shown");
|
|
check(f.client->post("/agent/registry/status").status == 405, "post is 405");
|
|
}
|
|
return finish("agent/registry/status");
|
|
}
|