test(runtimes): close the 1c exit-gate cells for health and compression on Deno and Bun
The CARD-22 gate audit found these runtime cells without tests: - CARD-17 T1-T3 (booting, ok, degraded) existed only on Node. Add them on Deno and Bun. T1 goes through app.fetch, because serveDeno and serveBun boot before they bind. T2 and T3 go through a real listener and assert the response body, not only the status. - CARD-16 T6 (encodings ['gzip'] with a br-only client gives identity) was missing on Deno and Bun. - CARD-16 T8 on Deno and Bun lacked the handler-set content-encoding case and the 204 case. A negative run of T6 against compression: true fails with 'encoded as br', so the check can tell the two cases apart. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
6 files changed
+221
-5
No files matched your search
Vendored
+1
-1
@@ -45,7 +45,7 @@ export const HTML_BODY: string = (() => {
|
||||
export const SMALL_BODY = JSON.stringify({ pad: 'x'.repeat(500) }); // 512 B, under the 1024 threshold
|
||||
export const BIG_BODY = HTML_BODY.repeat(2); // 102 KiB
|
||||
const PNG = 'P'.repeat(4096);
|
||||
const TEXT = 'y'.repeat(4096);
|
||||
export const TEXT = 'y'.repeat(4096);
|
||||
|
||||
const raw = (headers: Record<string, string>, status = 200) => (body: unknown) => ({
|
||||
status,
|
||||
|
||||
Reference in new issue
Block a user