|
11 | 11 | > @telagent/node@0.1.0 test /Users/xiasenhai/workspace/private-repo/Bots/telagent/packages/node |
12 | 12 | > node --test dist/*.test.js dist/**/*.test.js |
13 | 13 |
|
14 | | -✔ created response returns data envelope and Location header (124.031375ms) |
15 | | -✔ list response returns paginated envelope shape (23.811ms) |
16 | | -✔ validation errors use RFC7807 shape and problem+json content type (4.63075ms) |
17 | | -✔ not found uses RFC7807 shape (4.855375ms) |
18 | | -✔ identities and groups endpoints are accessible with expected status codes (16.922958ms) |
19 | | -✔ messages, attachments and federation endpoints are accessible (116.265167ms) |
20 | | -✔ routes only serve /api/v1/* prefix (86.78625ms) |
21 | | -✔ identity endpoint responds with data envelope (8.710333ms) |
22 | | -✔ mailbox store defaults to sqlite backend (4.071708ms) |
23 | | -✔ mailbox store parses postgres backend config (0.46175ms) |
24 | | -✔ postgres backend requires connection url (0.40075ms) |
25 | | -✔ mailbox backend rejects unsupported value (0.193542ms) |
26 | | -✔ federation protocol defaults to v1 and supports self version (0.92375ms) |
27 | | -✔ federation supported protocols auto-include self version (0.297417ms) |
28 | | -✔ domain proof config defaults to enforced mode (2.825417ms) |
29 | | -✔ domain proof config accepts report-only mode and custom values (2.700625ms) |
30 | | -✔ domain proof mode rejects unsupported value (0.320209ms) |
31 | | -✔ domain proof numeric settings require positive integers (0.2985ms) |
32 | | -✔ federation pinning defaults to disabled mode (0.25775ms) |
33 | | -✔ federation pinning parses current/next keys and cutover timestamp (0.351958ms) |
34 | | -✔ federation pinning rejects invalid mode (0.176833ms) |
35 | | -✔ federation pinning enabled requires key mappings (2.141208ms) |
36 | | -✔ federation pinning map requires domain=keys format (1.118959ms) |
37 | | -✔ finalityDepth only materializes finalized blocks (56.656958ms) |
38 | | -✔ reorg rollback replays canonical events and restores deterministic view (49.29325ms) |
39 | | -✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (214.676834ms) |
40 | | -✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (48.243ms) |
41 | | -✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (1.314958ms) |
42 | | -✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.578583ms) |
43 | | -✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.1765ms) |
44 | | -✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.34075ms) |
45 | | -✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (31.041792ms) |
46 | | -✔ TA-P11-003 rejects illegal domain challenge on malformed domain (1.01875ms) |
47 | | -✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (14.564583ms) |
48 | | -✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (1.329542ms) |
49 | | -✔ TA-P11-003 report-only mode returns warning without blocking create flow (0.238375ms) |
50 | | -✔ TA-P4-007 federation envelopes support idempotent retries (5.124625ms) |
51 | | -✔ TA-P4-007 federation auth token is enforced when configured (0.330958ms) |
52 | | -✔ TA-P4-007 federation rate limit rejects burst traffic (0.167625ms) |
53 | | -✔ TA-P4-008 group-state sync enforces domain consistency (0.232666ms) |
54 | | -✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (0.422875ms) |
55 | | -✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.188833ms) |
56 | | -✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (18.425958ms) |
57 | | -✔ TA-P9-002 federation rejects unsupported protocol versions (1.340417ms) |
58 | | -✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (1.584ms) |
59 | | -✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (1.084ms) |
60 | | -✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (0.721167ms) |
61 | | -✔ TA-P4-008 node-info publishes domain and federation security policy (0.144916ms) |
62 | | -✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (1.069708ms) |
63 | | -✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (1.135791ms) |
64 | | -✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.261541ms) |
65 | | -✔ TA-P11-006 rejects invalid did and malformed key id (0.123709ms) |
66 | | -✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (2.091583ms) |
67 | | -✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.310333ms) |
68 | | -✔ TA-P4-003 duplicate envelopeId with different payload is rejected (0.505917ms) |
69 | | -✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (0.27275ms) |
70 | | -✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (3.692083ms) |
71 | | -✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.651166ms) |
72 | | -✔ TA-P6-001 mailbox persists messages and seq after service restart (21.581708ms) |
73 | | -✔ TA-P11-006 message send validates signal/mls key lifecycle status (0.986792ms) |
74 | | -✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (4.755416ms) |
75 | | -✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.309ms) |
76 | | -ℹ tests 62 |
| 14 | +✔ created response returns data envelope and Location header (33.765375ms) |
| 15 | +✔ list response returns paginated envelope shape (10.271291ms) |
| 16 | +✔ validation errors use RFC7807 shape and problem+json content type (36.935792ms) |
| 17 | +✔ not found uses RFC7807 shape (2.115833ms) |
| 18 | +✔ identities and groups endpoints are accessible with expected status codes (20.126209ms) |
| 19 | +✔ messages, attachments and federation endpoints are accessible (107.239833ms) |
| 20 | +✔ routes only serve /api/v1/* prefix (62.463125ms) |
| 21 | +✔ identity endpoint responds with data envelope (11.891041ms) |
| 22 | +✔ mailbox store defaults to sqlite backend (30.735125ms) |
| 23 | +✔ mailbox store parses postgres backend config (0.364375ms) |
| 24 | +✔ postgres backend requires connection url (0.322208ms) |
| 25 | +✔ mailbox backend rejects unsupported value (0.154125ms) |
| 26 | +✔ federation protocol defaults to v1 and supports self version (0.530542ms) |
| 27 | +✔ federation supported protocols auto-include self version (0.203125ms) |
| 28 | +✔ domain proof config defaults to enforced mode (0.161041ms) |
| 29 | +✔ domain proof config accepts report-only mode and custom values (8.673ms) |
| 30 | +✔ domain proof mode rejects unsupported value (2.582542ms) |
| 31 | +✔ domain proof numeric settings require positive integers (0.304292ms) |
| 32 | +✔ federation pinning defaults to disabled mode (0.208542ms) |
| 33 | +✔ federation pinning parses current/next keys and cutover timestamp (0.263042ms) |
| 34 | +✔ federation pinning rejects invalid mode (0.142541ms) |
| 35 | +✔ federation pinning enabled requires key mappings (0.130916ms) |
| 36 | +✔ federation pinning map requires domain=keys format (0.129166ms) |
| 37 | +✔ finalityDepth only materializes finalized blocks (87.088542ms) |
| 38 | +✔ reorg rollback replays canonical events and restores deterministic view (8.437667ms) |
| 39 | +✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (109.507041ms) |
| 40 | +✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (42.255833ms) |
| 41 | +✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (2.142875ms) |
| 42 | +✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.414791ms) |
| 43 | +✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.139083ms) |
| 44 | +✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.111792ms) |
| 45 | +✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (23.900167ms) |
| 46 | +✔ TA-P11-003 rejects illegal domain challenge on malformed domain (0.338458ms) |
| 47 | +✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (0.366541ms) |
| 48 | +✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (0.936667ms) |
| 49 | +✔ TA-P11-003 report-only mode returns warning without blocking create flow (0.189917ms) |
| 50 | +✔ TA-P4-007 federation envelopes support idempotent retries (0.9485ms) |
| 51 | +✔ TA-P4-007 federation auth token is enforced when configured (0.276167ms) |
| 52 | +✔ TA-P4-007 federation rate limit rejects burst traffic (0.139417ms) |
| 53 | +✔ TA-P4-008 group-state sync enforces domain consistency (0.15975ms) |
| 54 | +✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (0.342375ms) |
| 55 | +✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.165083ms) |
| 56 | +✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (12.750166ms) |
| 57 | +✔ TA-P9-002 federation rejects unsupported protocol versions (0.16175ms) |
| 58 | +✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (0.36875ms) |
| 59 | +✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (0.164125ms) |
| 60 | +✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (0.405834ms) |
| 61 | +✔ TA-P4-008 node-info publishes domain and federation security policy (0.103709ms) |
| 62 | +✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (0.868083ms) |
| 63 | +✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (0.918542ms) |
| 64 | +✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.2165ms) |
| 65 | +✔ TA-P11-006 rejects invalid did and malformed key id (0.100458ms) |
| 66 | +✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (0.975958ms) |
| 67 | +✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.218458ms) |
| 68 | +✔ TA-P4-003 duplicate envelopeId with different payload is rejected (0.367458ms) |
| 69 | +✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (0.23ms) |
| 70 | +✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (1.268417ms) |
| 71 | +✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.502625ms) |
| 72 | +✔ TA-P6-001 mailbox persists messages and seq after service restart (22.117792ms) |
| 73 | +✔ TA-P11-006 message send validates signal/mls key lifecycle status (1.40875ms) |
| 74 | +✔ TA-P11-007 revoked DID cannot continue sending new messages (0.231334ms) |
| 75 | +✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (2.435583ms) |
| 76 | +✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.296459ms) |
| 77 | +ℹ tests 63 |
77 | 78 | ℹ suites 0 |
78 | | -ℹ pass 62 |
| 79 | +ℹ pass 63 |
79 | 80 | ℹ fail 0 |
80 | 81 | ℹ cancelled 0 |
81 | 82 | ℹ skipped 0 |
82 | 83 | ℹ todo 0 |
83 | | -ℹ duration_ms 880.273417 |
| 84 | +ℹ duration_ms 832.12 |
0 commit comments