bun test v1.4.4 (38afee6c8) $ bun test student-tests/security-guards.test.ts student-tests/kv-secrets.test.ts student-tests/public-endpoint.test.ts student-tests/operator-crypto.test.ts student-tests/pki.test.ts student-tests/grpc-probe.test.ts student-tests/transport-negative.test.ts student-tests/command-runner.test.ts student-tests/checkpoint-guards.test.ts student-tests/openobserve-topology.test.ts student-tests/openobserve-config.test.ts student-tests/openobserve-accounts.test.ts student-tests/openobserve-request-path.test.ts student-tests/openobserve-response.test.ts student-tests/openobserve-search-window.test.ts student-tests/openobserve-reader.test.ts student-tests/openobserve-account-workflow.test.ts student-tests/openobserve-response.test.ts: (pass) HTTP401 text error preserves native HTTP outcome [0.14ms] (pass) HTTP422 text error preserves native HTTP outcome (pass) HTTP500 text error preserves native HTTP outcome (pass) HTTP200 JSON remains parsed [0.04ms] (pass) HTTP200 malformed success retains the status in its error [0.07ms] student-tests/openobserve-account-workflow.test.ts: (pass) saved native200 and403 accounts publish only after both account controls [0.77ms] (pass) positive HTTP401 cannot publish derived credentials [0.11ms] (pass) positive HTTP503 cannot publish derived credentials [0.03ms] (pass) positive HTTP201 cannot publish derived credentials [0.01ms] (pass) unexpected deny HTTP200 cannot publish derived credentials [0.09ms] (pass) unexpected deny HTTP503 cannot publish derived credentials [0.02ms] (pass) invalid saved query shape user cannot publish or probe [0.11ms] (pass) invalid saved query shape user cannot publish or probe [0.03ms] (pass) invalid saved query shape token cannot publish or probe [0.01ms] (pass) invalid saved query shape token cannot publish or probe (pass) extra owner slot never reaches credential publication [0.08ms] (pass) workflow requires explicit native and publishing ports [0.03ms] (pass) invalid query token after a healthy ingest control still cannot publish any derived file [0.12ms] student-tests/openobserve-config.test.ts: (pass) Collector uses native file auth and distinct stream-name handling for logs/traces versus metrics [0.55ms] (pass) Grafana queries measured native metric names without legacy namespace or invented suffixes [0.61ms] (pass) Grafana native plugin provisioning uses measured fields and native Basic auth consumers [0.27ms] (pass) Grafana mounts native alert rules using the measured datasource and metric names [0.38ms] student-tests/pki.test.ts: (pass) issued leaf verifies exact SAN, issuer, validity and matching key [413.38ms] student-tests/openobserve-accounts.test.ts: (pass) native service-account success saves exact credential before returning without a human-user API [0.31ms] (pass) native HTTP401 never publishes an account [0.08ms] (pass) native HTTP403 never publishes an account [0.01ms] (pass) native HTTP500 never publishes an account (pass) invalid native result fails closed code 3 [0.07ms] (pass) invalid native result fails closed token 0 (pass) invalid native result fails closed token 4097 (pass) invalid native result fails closed user 23 (pass) invalid native result fails closed token 4 (pass) account persistence failure stays primary and prevents a success result [0.11ms] student-tests/checkpoint-guards.test.ts: (pass) checkpoint second snapshot rejects changed bytes, additions and removals [0.23ms] (pass) historical evidence never replaces existing different bytes and permits exact identical bytes [0.40ms] (pass) handover lease rejects a different valid source generation after initial verification [0.71ms] (pass) handover lease rejects source mutation even when receipt is unchanged [0.21ms] (pass) historical finalization requires its accepted source and build generation binding [0.20ms] student-tests/kv-secrets.test.ts: (pass) reads the native KVv2 envelope for api [2.09ms] (pass) reads the native KVv2 envelope for worker [0.03ms] (pass) rejects missing KVv2 nesting and required fields [0.06ms] (pass) rejects credentials for another role [0.03ms] (pass) rejects invalid metadata and denied responses [0.08ms] student-tests/openobserve-request-path.test.ts: (pass) native URLSearchParams PromQL spaces stay valid before any credential or process port [0.15ms] (pass) rejects invalid request URI "https://foreign/api/default/streams" [0.03ms] (pass) rejects invalid request URI "/api/foreign/streams" (pass) rejects invalid request URI "/api/default/streams\r\nX: bad" (pass) rejects invalid request URI "/api/default/_search#fragment" (pass) rejects invalid request URI "/api/default/space in path" (pass) pinned plugin organization editor endpoint remains available [0.01ms] student-tests/openobserve-search-window.test.ts: (pass) actual fractional filesystem mtime serializes native integer microseconds [0.10ms] (pass) invalid search window NaN 1 fails before a native call [0.03ms] (pass) invalid search window 1 Infinity fails before a native call (pass) invalid search window -1 100 fails before a native call (pass) invalid search window 1 1.7976931348623157e+308 fails before a native call (pass) invalid search window 10 1 fails before a native call (pass) invalid search window 1 1 fails before a native call (pass) invalid search window 1 3600002 fails before a native call [0.01ms] student-tests/openobserve-topology.test.ts: (pass) telemetry storage is a single OpenObserve instead of Prometheus Loki Tempo and their gateways [0.45ms] (pass) OpenObserve has its own persistent data and a closed private gateway namespace [0.08ms] (pass) storage migration retains required neighbors and existing app OTLP contract without OpenObserve secrets [0.16ms] (pass) Collector and Grafana storage transport targets OpenObserve through the verified gateway [0.16ms] (pass) Grafana query gateway permits actual editor metadata and guards native request fields [0.05ms] student-tests/command-runner.test.ts: (pass) secondary diagnostic failures cannot replace command exit and both receipt writers are attempted [0.24ms] (pass) successful and explicitly allowed command outcomes are returned without diagnostic writes [0.18ms] (pass) runner requires explicit fake ports and preserves primary execution error [0.11ms] student-tests/operator-crypto.test.ts: (pass) operator envelope authenticates ciphertext and hides plaintext [140.43ms] (pass) operator envelope requires a sufficiently long passphrase [0.13ms] student-tests/public-endpoint.test.ts: (pass) selects the actual published loopback listener despite two LB networks [0.18ms] (pass) rejects invalid published ports [0.09ms] (pass) rejects unpublished, public, stopped and foreign-resource endpoints [0.10ms] student-tests/transport-negative.test.ts: (pass) Bun native certificate-required alert counts as client denial while timeout never does [0.58ms] student-tests/security-guards.test.ts: (pass) age rejects future, invalid and stale receipts [0.07ms] (pass) client role requires exact allowlist membership [0.05ms] (pass) network endpoints require TLS and an exact intended hostname [0.06ms] student-tests/grpc-probe.test.ts: (pass) native HTTP2 gRPC probe requires a valid Export response and checks request framing [145.54ms] student-tests/openobserve-reader.test.ts: (pass) reader produces fixed historical SQL end and the same PromQL time after three hours [1.02ms] (pass) fresh reader default uses the explicit clock for both native request forms [0.19ms] (pass) reader requires explicit native request and clock ports [0.03ms] 79 pass 0 fail 243 expect() calls Ran 79 tests across 17 files. [753.00ms]