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:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// Route: /cache/lookup (miss then hit)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto miss = f.client->get("/cache/lookup?key=k1");
|
||||
check(contains(miss.body, "\"hit\":false"), "first lookup misses");
|
||||
auto hit = f.client->get("/cache/lookup?key=k1");
|
||||
check(contains(hit.body, "\"hit\":true"), "second lookup hits");
|
||||
check(contains(hit.body, "computed-for-k1"), "same value served");
|
||||
return finish("cache/lookup");
|
||||
}
|
||||
Reference in New Issue
Block a user