Tests / @ogygia/federation
@ogygia/federation
Version 0.14.0 latest
620ddcca 228 test runs (228 tests, each run in Node, the browsers or both)
1.58× lines of test for each line of source (4,400 to 2,782) Only real test code counts: test files and their helpers, not fixtures, sample apps or benches.
Blank lines are left out on both sides.
Exactly what is counted
non-blank lines of test code across the repo (*.test.ts, *.test-d.ts, *.spec.ts, and the .ts helpers in test/ and e2e/ folders; no fixtures, fixture apps, stubs or benches), over non-blank lines of packages/*/src (no .d.ts or generated files)91.9% of source lines run by the tests
- 211Unit
- 0Browser
- 17End to end
- 0Type tests
- 0Lint rules
- 0Failing
Coverage
- 91.9%Lines
- 81.8%Branches
- 84.3%Functions
- 88.9%Statements
Every test
228 tests
| Test | Kind | Node | Chromium | Firefox | WebKit |
|---|---|---|---|---|---|
packages/federation/e2e/federation.spec.ts | |||||
| a DEFERRED remote widget is a shell-signed hole the browser fetches | End to end | not run | pass | pass | pass |
| a DEFERRED remote widget loads in the browser, in place of its placeholder | End to end | not run | pass | pass | pass |
| a remote widget as a STATIC region is baked into the shell home (storable) | End to end | not run | pass | pass | pass |
| a static widget whose peer answers an error status shows its card; the page renders (#931)#931 | End to end | not run | pass | pass | pass |
| cross-app THAW: a signed notice AS a peer is accepted; unsigned is 401 | End to end | not run | pass | pass | pass |
| mount(): the shell renders the whole cms app under /cms/ | End to end | not run | pass | pass | pass |
| the __catalog manifest is unsigned inventory (names + prop names) | End to end | not run | pass | pass | pass |
| the fragment endpoints REQUIRE a signature (401 without one) | End to end | not run | pass | pass | pass |
packages/federation/e2e/mfe-foreign-page.spec.ts | |||||
| mounted in the shell: one warning per island, and the island repaints with the shell page | End to end | not run | pass | pass | pass |
| on the cms front door the same island is local: silent, and the value survives hydrate | End to end | not run | pass | pass | pass |
| the cms-rendered probe island is spliced into the shell document | End to end | not run | pass | pass | pass |
packages/federation/e2e/mfe-peer-context.spec.ts | |||||
| a cms island reads the context its page set, on the cms's door | End to end | not run | pass | pass | pass |
| a cms island reads the context its page set, on the shell's door | End to end | not run | pass | pass | pass |
packages/federation/e2e/mfe-peer-hole.spec.ts | |||||
| shows its server render, baked and deferred | End to end | not run | pass | pass | pass |
packages/federation/e2e/mfe-two-widgets.spec.ts | |||||
| each shows its own answer | End to end | not run | pass | pass | pass |
packages/federation/e2e/router-page-set-context.spec.ts | |||||
| a cms island reads the context its router page set, on the cms's door | End to end | not run | pass | pass | pass |
| a cms island reads the context its router page set, on the shell's door | End to end | not run | pass | pass | pass |
packages/federation/test/absolutize.test.ts | |||||
| absolutize > changes nothing outside the start tags the browser reads, on any page | Unit | pass | not run | not run | not run |
| absolutize > leaves text that looks like an asset ref as the peer wrote it | Unit | pass | not run | not run | not run |
| absolutize > pins each attribute whose names differ past ASCII, each in its own value (#1115)#1115 | Unit | pass | not run | not run | not run |
| absolutize > pins the asset refs of real tags | Unit | pass | not run | not run | not run |
packages/federation/test/body-cap.test.ts | |||||
| read_capped_body > a chunked body past the cap is refused, read no further than one piece past it | Unit | pass | not run | not run | not run |
| read_capped_body > a GET or HEAD has no body to read | Unit | pass | not run | not run | not run |
| read_capped_body > any chunking: the bytes as sent when within the cap, else too large; never a piece past the cap | Unit | pass | not run | not run | not run |
packages/federation/test/body-unreadable.test.ts | |||||
| a federation body that breaks off mid-upload is a 400 (#1427) > a thaw notice#1427 | Unit | pass | not run | not run | not run |
| a federation body that breaks off mid-upload is a 400 (#1427) > the exposed table#1427 | Unit | pass | not run | not run | not run |
packages/federation/test/code-origins.test.ts | |||||
| the code origins a shell allows > are every peer’s origins, replicas included | Unit | pass | not run | not run | not run |
| the code origins a shell allows > no federate(): none | Unit | pass | not run | not run | not run |
packages/federation/test/federation-unregistered.test.ts | |||||
| a federation request with no federate() run says federation_unregistered, once | Unit | pass | not run | not run | not run |
| a path that is not a federation one says nothing | Unit | pass | not run | not run | not run |
packages/federation/test/federation.test.ts | |||||
| cross-app thaw > peer.drop evicts cached documents by their adopted tags | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > a hole signature covers each field on its own, whatever characters the fields hold | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > a peer's redirect target is escaped into the moved card's href (#439)#439 | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > an expired hole is answered as an expired local one, and the runtime’s renewal re-signs it | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > answers a live hole with the fragment | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > expires in SECONDS, by the app’s rule: the `ttl` window, or the life of the deploy on a stored page | Unit | pass | not run | not run | not run |
| deferred remote holes — the lifetime and renewal of a local hole > refuses a forged hole and a renewal of one that has not expired | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > a second authorized key still verifies (rotation / multi-caller) | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > a signature counts once however its base64 is spelled | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > a signature that is not canonical base64 is refused, even the first time | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > accepts a fresh, correctly-signed request once and returns its claims | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > AUDIENCE BINDING: a hop signed for cms.test is rejected at dash.test (same key) | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > federate() warns when peers may call in and the app has no audience to check them against | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > NaN timestamp does not bypass the freshness gate | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > REPLAY: a byte-identical second delivery is rejected | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > tampered claims (re-encoded x-og-user) break the signature | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > a call is accepted once, whichever of its two signatures arrives first (#822)#822 | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > a call signed the old way only still checks (peers upgrade one at a time) | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > a call with its method, path, body, claims or audience changed is refused | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > a signed call carries one token that names it | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > a token from another key is refused, and a bad token is not saved by good legacy headers | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > the call capability (x-og-cap) > the token alone checks, once | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > without an `audience`, the Host a request names is never its audience | Unit | pass | not run | not run | not run |
| Ed25519 signing / verification > without an `audience`, the ORIGIN the app is configured with is its audience | Unit | pass | not run | not run | not run |
| federate() — registration + fail-closed > returns typed peer handles keyed by name | Unit | pass | not run | not run | not run |
| federate() — registration + fail-closed > warns when it exposes but no peer has a key (and not with `open`) | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > a graph that is not an object passes through as it came | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > a peer page’s context root reaches only its own body: lifted as a provider around it (#1974)#1974 | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > any title and redirect target round-trip: lifted plain, escaped once, never markup | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > carries a head meta whole when its quoted content holds a `>` | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > carries none of ogygia's own per-document metas: the peer's router, CSR and dev scope stay the peer's (#1749)#1749 | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > extracts title, stylesheet links, and SEO meta; drops charset/viewport; absolutizes assets | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > lifts no stylesheet a head comment holds, and reads the head past a </head> in script text (#973)#973 | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > lifts the title as plain text, its entities decoded (the shell escapes it once, #436)#436 | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > pins the island graph to the remote: chunks, entry keys, snippet locations | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > reads the document’s tags as a browser does | Unit | pass | not run | not run | not run |
| lift_document — an app’s full HTML → the wire shape > takes the runtime only from a real runtime script, never from text that looks like one (#972)#972 | Unit | pass | not run | not run | not run |
| mount() — claims auto-built from the table identity > a user override replaces the visitor, the table experiments still ride along, and its own experiment wins | Unit | pass | not run | not run | not run |
| mount() — claims auto-built from the table identity > anonymous + no experiments = NO claims header at all | Unit | pass | not run | not run | not run |
| mount() — claims auto-built from the table identity > signs c.visitor + EVERY table experiment into the hop — no hand-listing | Unit | pass | not run | not run | not run |
| mount() — claims auto-built from the table identity > STATUS CHANNEL: a mounted 404 answers 404 through the shell | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > a pre-mutation in-flight fetch cannot repopulate the cache: its caller reads again | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > a stale refresh that answers an error document never replaces the good copy | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > coalesces concurrent misses into ONE upstream call | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > failover: an unreachable primary tries the next origin; a 404 does not | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > postDoc speaks AS the peer (origin header) and forwards the content-type | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > serves fresh, then STALE + refreshes in background after ttl (SWR) | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > widgetDoc hits the catalog path with props | Unit | pass | not run | not run | not run |
| peer transport — one per remote app > widgetDoc throws a plain Error; doc() throws http errors; a network failure is a 504 | Unit | pass | not run | not run | not run |
| remote regions > a deferred remote region is a hole with a shell-signed url | Unit | pass | not run | not run | not run |
| remote regions > a static remote page bakes its HTML and adopts the fragment’s tags into the capture | Unit | pass | not run | not run | not run |
| remote regions > mint_hole degrades to an empty inert region when no signer is installed | Unit | pass | not run | not run | not run |
packages/federation/test/hole-peer-failure.test.ts | |||||
| a deferred region's hole: the status names the failure > a page hole after a 500: a 502, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a page hole after a 503: a 503, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a page hole after a body cut midway: a 502, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a page hole after no answer at all: a 504, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a page hole whose peer page is not found: a 404 with no body, so the region keeps its fallback, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a widget hole after a 500: a 502, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a widget hole after a 503: a 503, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a widget hole after a body cut midway: a 502, never stored | Unit | pass | not run | not run | not run |
| a deferred region's hole: the status names the failure > a widget hole after no answer at all: a 504, never stored | Unit | pass | not run | not run | not run |
| a deferred widget's hole when the peer fails > answers the widget when the peer does | Unit | pass | not run | not run | not run |
| a deferred widget's hole when the peer fails > is not an empty success after a 503: the page can show its fallback and ask again | Unit | pass | not run | not run | not run |
| a deferred widget's hole when the peer fails > is not an empty success after a body cut midway: the page can show its fallback and ask again | Unit | pass | not run | not run | not run |
| a deferred widget's hole when the peer fails > is not an empty success after no answer at all: the page can show its fallback and ask again | Unit | pass | not run | not run | not run |
packages/federation/test/owners.test.ts | |||||
| a deploy thaw is owed to the peers that missed it, not to every peer > a peer that never takes it: given up after a bounded number of rounds, with a warning naming it | Unit | pass | not run | not run | not run |
| a deploy thaw is owed to the peers that missed it, not to every peer > its policy keeps the old numbers: a round no sooner than 30 s after the last, 10 rounds | Unit | pass | not run | not run | not run |
| a deploy thaw is owed to the peers that missed it, not to every peer > one peer refuses: only it is sent the thaw again, the others take it once | Unit | pass | not run | not run | not run |
| a peer request belongs to the generation that started it (#210) > after a drop, the old request ending does not remove the new one: no second upstream fetch#210 | Unit | pass | not run | not run | not run |
| the deploy thaw is tried again until it is done (#198) > done is done: a check after a successful thaw does nothing#198 | Unit | pass | not run | not run | not run |
| the deploy thaw is tried again until it is done (#198) > requests during a check join it (one check, one thaw)#198 | Unit | pass | not run | not run | not run |
| the deploy thaw is tried again until it is done (#198) > the peer never takes the thaw AND the store goes down after the first ask: the owed thaw goes without asking it again#198 | Unit | pass | not run | not run | not run |
| the deploy thaw is tried again until it is done (#198) > the peer never takes the thaw: a later request thaws again, and the store is asked once#198 | Unit | pass | not run | not run | not run |
| the deploy thaw is tried again until it is done (#198) > the store is down for the first check: a later request checks again and thaws#198 | Unit | pass | not run | not run | not run |
packages/federation/test/peer-answer-invalid.test.ts | |||||
| a peer's answer that is not its JSON document > a mutation: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer that is not its JSON document > a page read: a 502 the page handles, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer that is not its JSON document > a static widget: the boundary card in its place, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer that is not its JSON document > the raw widget document: a plain Error naming the code, not a SyntaxError | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 200, no redirect status: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 300, no redirect status: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 301: the move, as the peer said it | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 302: the move, as the peer said it | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 303: the move, as the peer said it | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 304, no redirect status: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 305, no redirect status: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 307: the move, as the peer said it | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 308: the move, as the peer said it | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page document that moves with 399, no redirect status: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page read the peer answers 404 with its document: the peer's own not-found page | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page read whose peer answers 500: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a page read whose peer is unavailable (503): the 503 passes through | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a post whose peer answers 403: a 502, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a static widget the peer does not have (404): the boundary card, and the code said | Unit | pass | not run | not run | not run |
| a peer's answer with an error status > a static widget whose peer answers 500: the boundary card in its place, and the code said | Unit | pass | not run | not run | not run |
packages/federation/test/peer-code-origins.test.ts | |||||
| a peer fragment’s runtime origin > joins the request’s code origins when the fragment is used | Unit | pass | not run | not run | not run |
| a peer fragment’s runtime origin > no runtime named: nothing | Unit | pass | not run | not run | not run |
| a peer fragment’s runtime origin > not from a runtime that is not an http(s) URL | Unit | pass | not run | not run | not run |
| a peer fragment’s runtime origin > not from an answer a redirect took to another origin | Unit | pass | not run | not run | not run |
packages/federation/test/peer-endpoints.test.ts | |||||
| a region of the peer's own inside its fragment > a deferred widget: the island inside its answer asks the shell too | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > a redirected or failed answer is not the region's: the shell says so, never swaps it in | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > a region tag written in a script or a comment is no tag: left as it came | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > a static widget: the server island asks the shell, which asks the peer | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint after a value holding > asks the shell too | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint in single quotes asks the shell too | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint on any other origin is not the peer's: it stays as it came (the runtime refuses it) | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint spaced, in upper case asks the shell too | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint unquoted asks the shell too | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an endpoint written inside another value is left as written | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > an expired capability of the peer's is renewed by the peer | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > the fragment pins its region endpoints to its origin | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > the peer's keep-fallback answer keeps the fallback | Unit | pass | not run | not run | not run |
| a region of the peer's own inside its fragment > the shell forwards only to the peer: a hole naming another path is refused | Unit | pass | not run | not run | not run |
packages/federation/test/peer-failover.test.ts | |||||
| region endpoint replicas > a target without its leading slash is refused before any origin is asked | Unit | pass | not run | not run | not run |
| region endpoint replicas > an origin that answers 500: the next is asked | Unit | pass | not run | not run | not run |
| region endpoint replicas > an origin that does not answer: the next is asked | Unit | pass | not run | not run | not run |
| replica failover on a server error > a mutation the first origin answers 503 is never sent to a replica | Unit | pass | not run | not run | not run |
| replica failover on a server error > a page answer below 500 is the answer: the next origin is not asked | Unit | pass | not run | not run | not run |
| replica failover on a server error > a page read the first origin answers 500 is asked of the next | Unit | pass | not run | not run | not run |
| replica failover on a server error > a page read the first origin answers 503 is asked of the next | Unit | pass | not run | not run | not run |
| replica failover on a server error > a widget answer below 500 is the answer: the next origin is not asked | Unit | pass | not run | not run | not run |
| replica failover on a server error > a widget read the first origin answers 500 is asked of the next | Unit | pass | not run | not run | not run |
| replica failover on a server error > a widget read the first origin answers 503 is asked of the next | Unit | pass | not run | not run | not run |
| the document cache ttl > a copy exactly ttl old is stale: the read starts a refresh | Unit | pass | not run | not run | not run |
packages/federation/test/peer-flights.test.ts | |||||
| a peer read is one flight per key (#294) > a mutation while a read is out: the reader gets the page as it is after it#294 | Unit | pass | not run | not run | not run |
| a peer read is one flight per key (#294) > a page whose sources move during every fetch of it: the read gives up with a 504 and the code said, and does not fetch it forever (#1792)#294 | Unit | pass | not run | not run | not run |
| a peer read is one flight per key (#294) > a read that starts while a mutation is out: once the mutation ends, no read gets the page from before it#294 | Unit | pass | not run | not run | not run |
| a peer read is one flight per key (#294) > a thaw of other tags keeps the fetch in flight: its answer is kept#294 | Unit | pass | not run | not run | not run |
| a peer read is one flight per key (#294) > a thaw of the tags its answer carries: the waiting caller gets the page fetched again#294 | Unit | pass | not run | not run | not run |
packages/federation/test/peer-timeout.test.ts | |||||
| a hop the peer never answers gives up after its timeout, on the realm's timers | Unit | pass | not run | not run | not run |
packages/federation/test/peer-unreachable.test.ts | |||||
| a hop the asking request ended itself > a mutation whose answer breaks off mid-body fails with that break, as it came | Unit | pass | not run | not run | not run |
| a hop the asking request ended itself > a page read: the fetch ends unsaid, and no other origin is asked | Unit | pass | not run | not run | not run |
| a peer that gives no answer at all > a deferred widget's hole: a 504, and the code said | Unit | pass | not run | not run | not run |
| a peer that gives no answer at all > a page read: a 504, and the code said | Unit | pass | not run | not run | not run |
| a peer that gives no answer at all > a static widget: the boundary card in its place, and the code said | Unit | pass | not run | not run | not run |
packages/federation/test/property-peer-answer.test.ts | |||||
| a peer answer that is JSON but not its document > {"css":"x","body":"b"}: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > {"error":"busy"}: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > {"html":5}: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > {"status":200,"title":"t","css":[],"body":"b","trace":{"trace_id":"a\r\nb","span_id":"c"}}: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > {}: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > any answer: a widget is a region, a page read a document or an HttpError, never a TypeError | Unit | pass | not run | not run | not run |
| a peer answer that is JSON but not its document > null: a widget shows the card, a page read is a 502, and the code is said | Unit | pass | not run | not run | not run |
packages/federation/test/property-thaw.test.ts | |||||
| serve_thaw with any signed body > answers 200 for a notice of the notice’s shape and 400 for anything else, never throws | Unit | pass | not run | not run | not run |
packages/federation/test/property-wire.test.ts | |||||
| a peer document > any graph text is pinned without a throw, and pinning twice is pinning once | Unit | pass | not run | not run | not run |
| a peer document > its pinned island graph is JSON with no < | Unit | pass | not run | not run | not run |
| signed claims > read back as sent | Unit | pass | not run | not run | not run |
| signed claims > with the capability: one header it covers changed in any way is refused, never a throw | Unit | pass | not run | not run | not run |
| signed claims > with the legacy signature alone: one header it covers changed in any way is refused, never a throw | Unit | pass | not run | not run | not run |
packages/federation/test/router-stream.test.ts | |||||
| mount({ stream: true }) — the sugar > a COMPONENT fallback bakes as an inline region into the flushed part | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > a dead MFE yields the offline card AFTER the flush — first byte never waited | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > a late redirect degrades to a link card (status already flushed) | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > a late redirect's target is escaped into the card's href (#439)#439 | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > a mounted page's title is escaped once (#436)#436 | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > a peer page not found yields the offline card, never the peer's not-found page inside the 200 | Unit | pass | not run | not run | not run |
| mount({ stream: true }) — the sugar > fallback flushes; the doc (css+head+body) rides the late chunk | Unit | pass | not run | not run | not run |
| page(async function*) — the streamed slot > a region that cannot bake fails LOUDLY into the error card (never an empty chunk) | Unit | pass | not run | not run | not run |
| page(async function*) — the streamed slot > a throw AFTER the flush becomes an error-card chunk, page still closes | Unit | pass | not run | not run | not run |
| page(async function*) — the streamed slot > flushes the first yield, chunks the rest as templates, boots once | Unit | pass | not run | not run | not run |
| page(async function*) — the streamed slot > non-GET buffers to the FINAL yield (actions need a whole answer) | Unit | pass | not run | not run | not run |
| page(async function*) — the streamed slot > yields REAL regions — async generators auto-await them, the resolved shapes must bake | Unit | pass | not run | not run | not run |
packages/federation/test/router-when.test.ts | |||||
| mount(pick) — the flag-picked canary > a pick that yields a non-client throws loudly, naming the fix | Unit | pass | not run | not run | not run |
| mount(pick) — the flag-picked canary > a resolver function picks the peer for each request | Unit | pass | not run | not run | not run |
| mount(pick) — the flag-picked canary > routes the hop through the picked client, stickily per visitor | Unit | pass | not run | not run | not run |
| when() — a gated-off route does not exist > endpoint: off → fall-through (null, no base); on via ?og-exp → served | Unit | pass | not run | not run | not run |
| when() — a gated-off route does not exist > page under an owned base: off → 404 without ever touching the page (no network) | Unit | pass | not run | not run | not run |
| when() — a gated-off route does not exist > the gate decision self-registers for federation carry (like any flag read) | Unit | pass | not run | not run | not run |
| when() — a gated-off route does not exist > the gate is any (c) => boolean — a plain predicate works | Unit | pass | not run | not run | not run |
packages/federation/test/serve-claims.test.ts | |||||
| verified visitor claims reach what the call asked for > a signed call with no claims is anonymous | Unit | pass | not run | not run | not run |
| verified visitor claims reach what the call asked for > a signed page call hands its claims to the exposed table | Unit | pass | not run | not run | not run |
| verified visitor claims reach what the call asked for > a signed widget call hands its claims to the widget | Unit | pass | not run | not run | not run |
| verified visitor claims reach what the call asked for > an unsigned call is refused before the table or widget runs | Unit | pass | not run | not run | not run |
| verified visitor claims reach what the call asked for > on an open app a raw x-og-user header is no identity | Unit | pass | not run | not run | not run |
packages/federation/test/serve-expose.test.ts | |||||
| an exposed table is asked on its own origin, whatever path the caller sent > a path without its leading slash gets one, on the app’s origin | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > a plain path and query reach the table as sent | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > a search that is not a query string stays the query | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > path "///other.example" is refused, and never reaches the table | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > path "//other.example/me" is refused, and never reaches the table | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > path "/\\other.example/me" is refused, and never reaches the table | Unit | pass | not run | not run | not run |
| an exposed table is asked on its own origin, whatever path the caller sent > path "\\\\x" is refused, and never reaches the table | Unit | pass | not run | not run | not run |
packages/federation/test/shared-state.test.ts | |||||
| SharedState membrane (devalue snapshot-on-write) > a proxy degrades to a plain snapshot (reactive wrappers never enter the store) | Unit | pass | not run | not run | not run |
| SharedState membrane (devalue snapshot-on-write) > functions and class instances THROW loudly at the write site | Unit | pass | not run | not run | not run |
| SharedState membrane (devalue snapshot-on-write) > plain data round-trips, devalue vocabulary included | Unit | pass | not run | not run | not run |
| SharedState membrane (devalue snapshot-on-write) > the vanilla door enforces the same membrane | Unit | pass | not run | not run | not run |
| SharedState membrane (devalue snapshot-on-write) > writes are SNAPSHOTS — later mutation of the source object does not leak in | Unit | pass | not run | not run | not run |
packages/federation/test/sim-deploy-thaw.test.ts | |||||
| the deploy thaw, simulated > reaches every peer once the store and the peers are back, sent once to each | Unit | pass | not run | not run | not run |
packages/federation/test/sim-peer.test.ts | |||||
| a federation peer, simulated > fetches each page once per thaw, and never serves a page from before what it saw | Unit | pass | not run | not run | not run |
packages/federation/test/sim-thaw.test.ts | |||||
| a thaw notice arriving, simulated > is answered done only once applied, applied once, and passed on only then | Unit | pass | not run | not run | not run |
packages/federation/test/thaw-hop-cap.test.ts | |||||
| the thaw hop cap > hop 3 is still passed on; hop 4 is not | Unit | pass | not run | not run | not run |
packages/federation/test/thaw-notice-shape.test.ts | |||||
| a thaw notice not of the notice’s shape (#988) > a key under `__proto__` is no key: `tags: "all"` there thaws nothing#988 | Unit | pass | not run | not run | not run |
| a thaw notice not of the notice’s shape (#988) > a notice of the shape is still applied and passed on#988 | Unit | pass | not run | not run | not run |
| a thaw notice not of the notice’s shape (#988) > is refused with a 400, applies nothing, and is passed on to no one#988 | Unit | pass | not run | not run | not run |
packages/federation/test/thaw-receive.test.ts | |||||
| a notice id past its keep > is forgotten after 10 minutes: the same notice again is applied again | Unit | pass | not run | not run | not run |
| a thaw notice whose evict fails (#287) > answers an error and keeps no id; the retry with the same id is applied#287 | Unit | pass | not run | not run | not run |
| two copies of a notice at once (the sender tried again while the first applied) > applies it once, and passes it on once | Unit | pass | not run | not run | not run |
packages/federation/test/thaw-send.test.ts | |||||
| a peer that never answers a thaw notice > is given up on after 5 seconds a try, then tried again | Unit | pass | not run | not run | not run |
| a publish on a serverless platform (#286) > hands the thaw broadcast to the request's waitUntil, which holds until a peer took it#286 | Unit | pass | not run | not run | not run |
| a thaw notice no peer took > is said with the peers that missed it, once the retries are spent | Unit | pass | not run | not run | not run |
packages/federation/test/trace-random-port.test.ts | |||||
| a new trace's ids are drawn from the realm's randomness | Unit | pass | not run | not run | not run |
packages/federation/test/vite.test.ts | |||||
| federation() > inlines @ogygia/router in the server build, as it ships .svelte files, even when the app does not list router() | Unit | pass | not run | not run | not run |