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,18 @@
|
||||
// Route: /replication/state (append plus since)
|
||||
#include "support/Assert.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
Fixture f;
|
||||
auto add = f.client->post("/replication/state",
|
||||
"{\"object\":\"doc-1\",\"data\":\"v1\"}",
|
||||
"application/json");
|
||||
check(add.status == 201, "append is 201");
|
||||
check(contains(add.body, "last-writer-wins"), "conflict rule named");
|
||||
auto full = f.client->get("/replication/state?since=0");
|
||||
check(contains(full.body, "doc-1"), "entry replicated");
|
||||
auto empty = f.client->get("/replication/state?since=99");
|
||||
check(contains(empty.body, "\"entries\":[]"), "cursor filters");
|
||||
return finish("replication/state");
|
||||
}
|
||||
Reference in New Issue
Block a user