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
+16
View File
@@ -0,0 +1,16 @@
// Route: GET /security/denials (capped ring of refusals)
#include "support/Assert.hpp"
using namespace molo::example::test;
static const char* kForm = "application/x-www-form-urlencoded";
int main() {
Fixture f;
check(contains(f.client->get("/security/denials").body, "\"total\":0"), "starts empty");
for (int i = 0; i < 120; ++i) f.client->post("/security/guard", "kind=x&value=a", kForm);
auto r = f.client->get("/security/denials");
check(r.status == 200 && contains(r.body, "\"total\":120"), "total counts all");
std::size_t n = 0, p = 0;
while ((p = r.body.find("\"guard\"", p)) != std::string::npos) { ++n; p += 7; }
check(n == 100, "ring capped at 100");
check(f.client->post("/security/denials", "x").status == 405, "POST 405");
return finish("security/denials");
}