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,16 @@
|
||||
// Route: GET /v2/items (current version: no deprecation headers)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
using molo::example::fw::Method;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto r = f.client->get("/v2/items");
|
||||
check(r.status == 200 && contains(r.body, "\"v2\""), "ok");
|
||||
check(r.headers.get("X-API-Version") == "v2", "version header");
|
||||
check(!r.headers.has("Deprecation") && !r.headers.has("Sunset"), "no deprecation");
|
||||
check(f.client->post("/v2/items").status == 405, "405 on post");
|
||||
check(f.client->get("/v3/items").status == 404, "404 unknown version");
|
||||
return finish("v2/items");
|
||||
}
|
||||
Reference in New Issue
Block a user