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/pki.test.ts:
(pass) issued leaf verifies exact SAN, issuer, validity and matching key [444.19ms]

student-tests/checkpoint-guards.test.ts:
(pass) checkpoint second snapshot rejects changed bytes, additions and removals [0.21ms]
(pass) historical evidence never replaces existing different bytes and permits exact identical bytes [0.33ms]
(pass) handover lease rejects a different valid source generation after initial verification [0.60ms]
(pass) handover lease rejects source mutation even when receipt is unchanged [0.20ms]
(pass) historical finalization requires its accepted source and build generation binding [0.18ms]

student-tests/kv-secrets.test.ts:
(pass) reads the native KVv2 envelope for api [0.21ms]
(pass) reads the native KVv2 envelope for worker [0.02ms]
(pass) rejects missing KVv2 nesting and required fields [0.05ms]
(pass) rejects credentials for another role [0.03ms]
(pass) rejects invalid metadata and denied responses [0.05ms]

student-tests/command-runner.test.ts:
(pass) secondary diagnostic failures cannot replace command exit and both receipt writers are attempted [0.27ms]
(pass) successful and explicitly allowed command outcomes are returned without diagnostic writes [0.13ms]
(pass) runner requires explicit fake ports and preserves primary execution error [0.10ms]

student-tests/operator-crypto.test.ts:
(pass) operator envelope authenticates ciphertext and hides plaintext [129.85ms]
(pass) operator envelope requires a sufficiently long passphrase [0.11ms]

student-tests/public-endpoint.test.ts:
(pass) selects the actual published loopback listener despite two LB networks [0.15ms]
(pass) rejects invalid published ports [0.10ms]
(pass) rejects unpublished, public, stopped and foreign-resource endpoints [0.09ms]

student-tests/transport-negative.test.ts:
(pass) Bun native certificate-required alert counts as client denial while timeout never does [0.61ms]

student-tests/security-guards.test.ts:
(pass) age rejects future, invalid and stale receipts [0.10ms]
(pass) client role requires exact allowlist membership [0.08ms]
(pass) network endpoints require TLS and an exact intended hostname [0.09ms]

student-tests/grpc-probe.test.ts:
(pass) native HTTP2 gRPC probe requires a valid Export response and checks request framing [267.62ms]

 24 pass
 0 fail
 77 expect() calls
Ran 24 tests across 9 files. [905.00ms]
