// Route: GET /agent/live (mobile-first Live API page, no credential needed) #include "support/GoogleRig.hpp" using namespace molo::example::test; int main() { GoogleRig rig(false); Fixture f(rig.client); auto res = f.client->get("/agent/live"); check(res.status == 200, "status 200 without a credential"); check(contains(res.headers.get("Content-Type"), "text/html"), "html"); check(contains(res.body, "Live API") && contains(res.body, "l-create"), "page body"); check(contains(res.body, "/embedded/agent_live.js"), "script referenced"); check(contains(res.body, "viewport"), "responsive meta from the base template"); check(contains(f.client->get("/").body, "/agent/live"), "listed in the feature matrix"); check(f.client->post("/agent/live").status == 405, "post is 405"); check(rig.mock->send_count() == 0, "side effect: no upstream traffic"); return finish("agent/live"); }