feat(workflow): example covers security, platform, enterprise and resilience features

105 route tests, matrix crawl, spec and README updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 02:19:52 +02:00
co-authored by Claude Sonnet 5.5
parent 00af65613d
commit 62fdd08da8
90 changed files with 8038 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
// Route: GET /cli/commands (real molo command reference)
#include "support/Assert.hpp"
using namespace molo::example::test;
using molo::example::fw::Method;
int main() {
Fixture f;
auto res = f.client->get("/cli/commands");
check(res.status == 200 && contains(res.headers.get("Content-Type"), "text/html"), "html page");
for (const char* c : {"new", "serve", "build", "embed", "migrate", "health", "supervisor", "task",
"ai", "expose", "verify", "supply-check", "release", "rollout", "rollback",
"experiment", "debug"})
check(contains(res.body, std::string("<code>molo ") + c + "</code>"), std::string("lists ") + c);
auto js = f.client->request(Method::Get, "/cli/commands", "", {{"Accept", "application/json"}});
check(contains(js.body, "\"commands\""), "json for json clients");
check(f.services.features.size() > 0, "side effect: feature rows registered");
check(f.client->request(Method::Post, "/cli/commands").status == 405, "post is 405");
return finish("clicmd/commands");
}