mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
* fix(test): serve fake Hopper segments in the bridge's reply contract #10662 validates every Hopper bridge reply. The fake Hopper behind the darwin packaged-CLI baseline still served list_segments without permissions, provenance and sections, so 'rea analyze --provider hopper' failed as unreadable output on every PR that ran that lane. The fixture's replies move to fakeHopperReplies.mjs, list_segments takes the real bridge's shape, and a test checks every served reply against the contract table. * test(hopper): derive the fake reply method list from one keyed factory object The contract test iterated a hand-kept method list beside the reply switch, so a reply added without updating the list would go unchecked. Replies are now factories in one keyed object; fakeHopperReply looks them up by key and FAKE_HOPPER_REPLY_METHODS is the object's keys, so every served reply is validated against its contract. * test(hopper): serve containing-procedure and reference replies from the keyed factories