// Routes: GET /agent/adk, /agent/adk/status, /agent/adk/garden #include "support/GoogleRig.hpp" using namespace molo::example::test; int main() { GoogleRig none(false); Fixture f(none.client); auto page = f.client->get("/agent/adk"); check(page.status == 200, "page 200 without a credential"); check(contains(page.body, "agent_adk.js") && contains(page.body, "adk-run"), "page has the runner UI"); auto st = f.client->get("/agent/adk/status"); check(st.status == 200 && contains(st.body, "\"configured\":false"), "status shows not configured"); check(contains(st.body, "\"max_steps\":12") && contains(st.body, "\"max_tool_calls\":24"), "caps shown"); auto g = f.client->get("/agent/adk/garden"); check(g.status == 200, "garden 200"); for (const char* id : {"code_modernization", "financial_analysis", "economic_research", "invoice_processing"}) check(contains(g.body, id), std::string("garden lists ") + id); check(none.mock->send_count() == 0, "side effect: no upstream traffic"); check(f.client->post("/agent/adk").status == 405, "post page is 405"); check(f.client->post("/agent/adk/garden").status == 405, "post garden is 405"); check(f.client->get("/agent/adk/run").status == 405, "get run is 405"); return finish("agent/adk page"); }