test(fifa17): real host<->Core economy integration harness

Spawn Core (axum) on an ephemeral loopback port backed by a disposable temp-file
SQLite, seed a fifa17 profile via the real Core HTTP API, then drive the HOST's
REAL transport (HttpCoreClient: CoreEconomy) + handlers against it — no fakes:
credits reads Core balance; match-reward writer credits via Core grant_reward;
purchasegroup full-gen renders the owned pack from a Core entitlement (no
sentinel); userMassInfo overlay derives coins from the same Core state
(credits==massinfo==Core invariant). Restart phase reboots Core from the same
on-disk DB and proves coins + entitlements persist. Temp dir + 127.0.0.1:0 only;
no prod DB/ports/containers/.105. dev-deps: openfut-core, tokio, axum.
This commit is contained in:
OpenFUT Agent
2026-08-13 19:50:42 +00:00
parent 96e80ab293
commit 8d752cb0e4
3 changed files with 197 additions and 1 deletions
+5
View File
@@ -17,3 +17,8 @@ reqwest = { version = "0.11", default-features = false, features = ["blocking",
[dev-dependencies]
parking_lot = "0.12"
# Real host<->Core integration harness: spawn Core (axum) against a disposable
# temp-file SQLite and drive the real CoreEconomy transport (no fakes).
openfut-core = { path = "../openfut-core" }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net"] }
axum = "0.7"