feat(clients): workspace: 20 Workspace APIs from Discovery, delegation sub claim, demo

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 15:03:45 +01:00
co-authored by Claude Sonnet 5.5
parent 3db67fcf1f
commit 54b564f9b9
24 changed files with 3949 additions and 3 deletions
@@ -0,0 +1,18 @@
// Route: GET /google/workspace (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("/google/workspace");
check(res.status == 200, "status 200");
check(contains(res.headers.get("Content-Type"), "text/html"), "html");
check(contains(res.body, "Google Workspace") && contains(res.body, "viewport"), "page and mobile viewport");
check(contains(res.body, "/embedded/google_workspace.js"), "script wired");
check(contains(res.body, "<select"), "dropdowns, not a button wall");
check(f.client->post("/google/workspace", "{}", "application/json").status == 405, "post is 405");
check(rig.mock->send_count() == 0, "no network");
return finish("google/workspace");
}