Files
moloapp/tests/example/governance/versions_test.cpp
T
retoorandClaude Sonnet 5.5 62fdd08da8 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>
2026-10-24 02:19:52 +02:00

16 lines
597 B
C++

// Route: GET /governance/versions (version table)
#include "support/Assert.hpp"
using namespace molo::example::test;
using molo::example::fw::Method;
int main() {
Fixture f;
auto r = f.client->get("/governance/versions");
check(r.status == 200 && contains(r.body, "\"deprecated\":true") && contains(r.body, "\"deprecated\":false"), "table");
check(contains(r.body, "GMT"), "sunset date listed");
check(f.client->post("/governance/versions").status == 405, "405");
check(contains(r.headers.get("Content-Type"), "application/json"), "json");
return finish("governance/versions");
}