// Route: GET /agent/runtime (page, no credential needed) #include "support/GoogleRig.hpp" using namespace molo::example::test; int main() { setenv("GOOGLE_CLOUD_PROJECT", "test-project", 1); GoogleRig rig(false); Fixture f(rig.client); auto res = f.client->get("/agent/runtime"); check(res.status == 200, "status 200"); check(contains(res.headers.get("Content-Type"), "text/html"), "html"); check(contains(res.body, "Agent Runtime") && contains(res.body, "viewport"), "page and mobile viewport"); check(contains(res.body, "/embedded/agent_runtime.js"), "script wired"); check(f.client->post("/agent/runtime", "{}", "application/json").status == 405, "post is 405"); check(rig.mock->send_count() == 0, "no network"); return finish("agent/runtime"); }