Files
retoor 3c4334cec9 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.
2026-10-23 18:20:04 +02:00

19 lines
717 B
C++

// 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");
}