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:
@@ -0,0 +1,15 @@
|
||||
// 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");
|
||||
}
|
||||
Reference in New Issue
Block a user