feat: implement MoloApp plans 01-15 with integration
Full C++23 framework tree: runtime, observability, security, data, app, realtime, supervisor, clients, CLI, example plus enterprise tenancy, audit, operability, governance, supplychain. Postgres via docker compose for tests.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// Route: GET /static/{name} (disk static, traversal guard)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto css = f.client->get("/static/app.css");
|
||||
check(css.status == 200, "css status 200");
|
||||
check(contains(css.headers.get("Content-Type"), "text/css"),
|
||||
"css content type");
|
||||
check(css.headers.has("ETag"), "etag present");
|
||||
check(contains(css.body, "nav-narrow"), "stylesheet served");
|
||||
auto missing = f.client->get("/static/nope.css");
|
||||
check(missing.status == 404, "missing file is 404");
|
||||
return finish("static/files");
|
||||
}
|
||||
Reference in New Issue
Block a user