fix(api): проверять достоверность WAN и не опрашивать выключенные серверы

This commit is contained in:
Denozordec committed 2026-10-14 00:47:29 +07:00
1 parent 4f084222ad
commit d91cc77cda
13 files changed
+353 -12

No files matched your search

@@ -0,0 +1,89 @@
{
"date": "2026-10-14",
"block": "12.5.217",
"baseline": true,
"database": "mm_accept_166_1791913409174",
"cases": [
{
"phase": "anonymous",
"status": 401,
"nativeCalls": 0
},
{
"phase": "wrong permission",
"status": 403,
"nativeCalls": 0
},
{
"phase": "populated",
"status": 200,
"nativeCalls": 3
},
{
"phase": "empty",
"status": 200,
"nativeCalls": 3
},
{
"phase": "fail-dhcp",
"status": 200,
"nativeCalls": 3
},
{
"phase": "fail-addresses",
"status": 200,
"nativeCalls": 3
},
{
"phase": "fail-routes",
"status": 200,
"nativeCalls": 3
},
{
"phase": "malformed-dhcp",
"status": 200,
"nativeCalls": 3
},
{
"phase": "malformed-addresses",
"status": 200,
"nativeCalls": 3
},
{
"phase": "malformed-routes",
"status": 200,
"nativeCalls": 3
},
{
"phase": "recovery",
"status": 200,
"nativeCalls": 3
},
{
"phase": "disabled",
"type": "home-router",
"status": 200,
"nativeCalls": 3
},
{
"phase": "disabled",
"type": "exit-node",
"status": 200,
"nativeCalls": 3
},
{
"phase": "missing-invalid",
"status": 404,
"nativeCalls": 0
},
{
"phase": "missing-invalid",
"status": 400,
"nativeCalls": 0
}
],
"scope": "Compiled WAN runtime route/auth, owned SQL/native HTTP fixture; real CHR untouched",
"passed": true,
"nativeWrites": 0,
"ownedDatabaseAndRoleRemoved": true
}
@@ -0,0 +1,19 @@
{
"date": "2026-10-14",
"block": "12.5.217",
"compiled": {
"matched": 1052,
"missing": 0,
"different": 0
},
"source": [
{
"kind": "backend",
"matched": 484
}
],
"profileScripts": [
"internet-path-snapshot"
],
"productionCases": 15
}
@@ -0,0 +1,21 @@
{
"date": "2026-10-14",
"block": "12.5.217",
"backendSourceMatched": 484,
"compiledMatched": 1052,
"frontendChanged": false,
"services": {
"backend": {
"image": "mmapp-test/backend:ux-wan217",
"imageId": "sha256:f5fac6167453e180e7aacb3b88de14e49860479dfcf46bc7a9ffd34db682e42b",
"running": true,
"health": "healthy"
},
"frontend": {
"image": "mmapp-test/frontend:ux-gre214",
"imageId": "sha256:7035e5ba628276a9927cce4814739dadd920dba0606e3b9fc316cc0262f77d5f",
"running": true,
"health": null
}
}
}
+89
View File
@@ -0,0 +1,89 @@
{
"date": "2026-10-14",
"block": "12.5.217",
"baseline": false,
"database": "mm_accept_166_1791913523373",
"cases": [
{
"phase": "anonymous",
"status": 401,
"nativeCalls": 0
},
{
"phase": "wrong permission",
"status": 403,
"nativeCalls": 0
},
{
"phase": "populated",
"status": 200,
"nativeCalls": 3
},
{
"phase": "empty",
"status": 200,
"nativeCalls": 3
},
{
"phase": "fail-dhcp",
"status": 502,
"nativeCalls": 3
},
{
"phase": "fail-addresses",
"status": 502,
"nativeCalls": 3
},
{
"phase": "fail-routes",
"status": 502,
"nativeCalls": 3
},
{
"phase": "malformed-dhcp",
"status": 502,
"nativeCalls": 3
},
{
"phase": "malformed-addresses",
"status": 502,
"nativeCalls": 3
},
{
"phase": "malformed-routes",
"status": 502,
"nativeCalls": 3
},
{
"phase": "recovery",
"status": 200,
"nativeCalls": 3
},
{
"phase": "disabled",
"type": "home-router",
"status": 409,
"nativeCalls": 0
},
{
"phase": "disabled",
"type": "exit-node",
"status": 409,
"nativeCalls": 0
},
{
"phase": "missing-invalid",
"status": 404,
"nativeCalls": 0
},
{
"phase": "missing-invalid",
"status": 400,
"nativeCalls": 0
}
],
"scope": "Compiled WAN runtime route/auth, owned SQL/native HTTP fixture; real CHR untouched",
"passed": true,
"nativeWrites": 0,
"ownedDatabaseAndRoleRemoved": true
}
@@ -0,0 +1,60 @@
{
"date": "2026-10-14",
"block": "12.5.217",
"backend": "ux-wan217",
"frontend": "ux-gre214",
"cases": [
{
"host": "194.226.121.150",
"serverId": 1,
"nativeCollections": 3,
"nativeStatuses": [
200,
200,
200
],
"applicationStatus": 200,
"anonymousStatus": 401,
"defaultGatewayMatchesNative": true,
"immediateGatewayMatchesNative": true,
"configuredUplinks": 0,
"leaseProjectionMatchesNative": true,
"passwordUnchanged": true
},
{
"host": "104.165.244.7",
"serverId": 2,
"nativeCollections": 3,
"nativeStatuses": [
200,
200,
200
],
"applicationStatus": 200,
"anonymousStatus": 401,
"defaultGatewayMatchesNative": true,
"immediateGatewayMatchesNative": true,
"configuredUplinks": 0,
"leaseProjectionMatchesNative": true,
"passwordUnchanged": true
}
],
"ui": [
{
"width": 1440,
"pageErrors": 0,
"mutationRequests": 0,
"scope": "Dashboard smoke; does not invoke legacy WAN endpoint directly"
},
{
"width": 320,
"pageErrors": 0,
"mutationRequests": 0,
"scope": "Dashboard smoke; does not invoke legacy WAN endpoint directly"
}
],
"realPortalJWT": true,
"apiMocks": false,
"nativeWrites": 0,
"scope": "Healthy WAN direct API/native projection and dashboard smoke; failures/disabled states tested only in owned SQL fixture"
}