mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
Round out Step 3b. Four more inbound fixtures complete the protocol set (http with two accounts, mixed with socks-style auth, tunnel with a port map, hysteria v1). Two parallel test files cover the other DUs: stream.test.ts walks tcp/ws/grpc fixtures through NetworkSettingsSchema, and security.test.ts walks none/tls/reality through SecuritySettingsSchema. Snapshot count is now 16 across three test files. The reality fixture locks in the array form of serverNames/shortIds (the panel class stores them comma-joined internally but they ship as arrays on the wire). The TLS fixture pins the file-vs-inline cert DU on the file branch. Stream coverage for httpupgrade/xhttp/kcp and security mixed-with-stream combos follow in the next turn, alongside the shadow harness.
34 lines
724 B
Text
34 lines
724 B
Text
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`NetworkSettingsSchema fixtures > parses grpc-basic byte-stably 1`] = `
|
|
{
|
|
"grpcSettings": {
|
|
"authority": "grpc.example.test",
|
|
"multiMode": false,
|
|
"serviceName": "GunService",
|
|
},
|
|
"network": "grpc",
|
|
}
|
|
`;
|
|
|
|
exports[`NetworkSettingsSchema fixtures > parses tcp-none byte-stably 1`] = `
|
|
{
|
|
"network": "tcp",
|
|
"tcpSettings": {},
|
|
}
|
|
`;
|
|
|
|
exports[`NetworkSettingsSchema fixtures > parses ws-default byte-stably 1`] = `
|
|
{
|
|
"network": "ws",
|
|
"wsSettings": {
|
|
"acceptProxyProtocol": false,
|
|
"headers": {
|
|
"X-Forwarded-Proto": "https",
|
|
},
|
|
"heartbeatPeriod": 30,
|
|
"host": "cdn.example.test",
|
|
"path": "/api/v2",
|
|
},
|
|
}
|
|
`;
|