fix(api): сохранять ошибки наблюдения BGP для оповещений

This commit is contained in:
Denozordec committed 2026-10-14 00:40:41 +07:00
1 parent 5ac5a25dfc
commit 4f084222ad
18 files changed
+478 -25

No files matched your search

+130
View File
@@ -0,0 +1,130 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"baseline": true,
"database": "mm_accept_166_1791913047176",
"cases": [
{
"phase": "anonymous",
"endpoint": "bgp/sessions",
"status": 401,
"nativeCalls": 0
},
{
"phase": "wrong permission",
"endpoint": "bgp/sessions",
"status": 403,
"nativeCalls": 0
},
{
"phase": "populated",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "populated",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "populated",
"endpoint": "compiled snapshot collector",
"bgpWritten": 2,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "empty",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "empty",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "empty",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "partial",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "partial",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 1,
"nativeCalls": 2
},
{
"phase": "partial",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "failed",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "failed",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 2,
"nativeCalls": 2
},
{
"phase": "failed",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "disabled",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 0
},
{
"phase": "disabled",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 0
},
{
"phase": "disabled",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
}
],
"scope": "Compiled production routes/auth, isolated PostgreSQL and RouterOS HTTP fixture; real CHR unchanged",
"passed": true,
"nativeWrites": 0,
"disabledHomeRouterCalls": 0,
"ownedDatabaseAndRoleRemoved": true
}
@@ -0,0 +1,24 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"compiled": {
"matched": 1052,
"missing": 0,
"different": 0
},
"source": [
{
"kind": "backend",
"matched": 483
}
],
"profileScripts": [
"bgp-catalog",
"bgp-peers-live",
"gre-bgp-snapshot-collector",
"gre-bgp-snapshot-history",
"collector-source-signals"
],
"sourcePhases": 6,
"productionCases": 17
}
@@ -0,0 +1,21 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"backendSourceMatched": 483,
"compiledMatched": 1052,
"frontendChanged": false,
"services": {
"backend": {
"image": "mmapp-test/backend:ux-bgp216",
"imageId": "sha256:a479c4dfc6773cf19b6882b49ccf53b5ff92dcb44ebecb1cf223047bf59c2987",
"running": true,
"health": "healthy"
},
"frontend": {
"image": "mmapp-test/frontend:ux-gre214",
"imageId": "sha256:7035e5ba628276a9927cce4814739dadd920dba0606e3b9fc316cc0262f77d5f",
"running": true,
"health": null
}
}
}
+130
View File
@@ -0,0 +1,130 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"baseline": false,
"database": "mm_accept_166_1791913132006",
"cases": [
{
"phase": "anonymous",
"endpoint": "bgp/sessions",
"status": 401,
"nativeCalls": 0
},
{
"phase": "wrong permission",
"endpoint": "bgp/sessions",
"status": 403,
"nativeCalls": 0
},
{
"phase": "populated",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "populated",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "populated",
"endpoint": "compiled snapshot collector",
"bgpWritten": 2,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "empty",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "empty",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 2
},
{
"phase": "empty",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
},
{
"phase": "partial",
"endpoint": "bgp/sessions",
"status": 503,
"failures": 1,
"nativeCalls": 2
},
{
"phase": "partial",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 1,
"nativeCalls": 2
},
{
"phase": "partial",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 1
},
{
"phase": "failed",
"endpoint": "bgp/sessions",
"status": 503,
"failures": 2,
"nativeCalls": 2
},
{
"phase": "failed",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 2,
"nativeCalls": 2
},
{
"phase": "failed",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 1
},
{
"phase": "disabled",
"endpoint": "bgp/sessions",
"status": 200,
"failures": 0,
"nativeCalls": 0
},
{
"phase": "disabled",
"endpoint": "bgp/catalog",
"status": 200,
"failures": 0,
"nativeCalls": 0
},
{
"phase": "disabled",
"endpoint": "compiled snapshot collector",
"bgpWritten": 0,
"greWritten": 1,
"sourceErrors": 0
}
],
"scope": "Compiled production routes/auth, isolated PostgreSQL and RouterOS HTTP fixture; real CHR unchanged",
"passed": true,
"nativeWrites": 0,
"disabledHomeRouterCalls": 0,
"ownedDatabaseAndRoleRemoved": true
}
@@ -0,0 +1,12 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"baseline": true,
"database": "mm_accept_166_1791912911021",
"cases": [],
"scope": "Compiled production routes/auth, isolated PostgreSQL and RouterOS HTTP fixture; real CHR unchanged",
"passed": false,
"errorName": "AssertionError",
"nativeWrites": 0,
"disabledHomeRouterCalls": 0
}
@@ -0,0 +1,50 @@
{
"date": "2026-10-14",
"block": "12.5.216",
"backend": "ux-bgp216",
"frontend": "ux-gre214",
"cases": [
{
"endpoint": "/api/bgp/sessions",
"status": 200,
"anonymousStatus": 401,
"envelopePreserved": true
},
{
"endpoint": "/api/bgp/catalog",
"status": 200,
"anonymousStatus": 401,
"envelopePreserved": true
}
],
"hosts": [
{
"host": "194.226.121.150",
"nativeResourceStatus": 200,
"passwordUnchanged": true
},
{
"host": "104.165.244.7",
"nativeResourceStatus": 200,
"passwordUnchanged": true
}
],
"ui": [
{
"width": 1440,
"actualCatalogStatus": 200,
"pageErrors": 0,
"mutationRequests": 0
},
{
"width": 320,
"actualCatalogStatus": 200,
"pageErrors": 0,
"mutationRequests": 0
}
],
"realPortalJWT": true,
"apiMocks": false,
"nativeWrites": 0,
"scope": "Healthy live legacy/catalog GET and active OSPF UI; failures simulated only in isolated native HTTP fixture"
}