20260728_2 修复rpki-explorer体验问题7项(#134):证书资源可展开、CMS对象新增EE Parsed Tab、Overview增加repo数KPI/修复Object types标签/Top repositories按objects排序(后端sort参数)/reject reasons按前缀聚类可下钻、Run选择器30s轮询

This commit is contained in:
2026-07-28 13:21:58 +08:00
parent 0d6bbec9f3
commit f7f80fe684
20 changed files with 676 additions and 70 deletions

View File

@@ -84,7 +84,9 @@ export const REPO_C = {
terminalStates: { fresh: 1 },
};
export const REPOS = [REPO_A, REPO_B, REPO_C];
// Deliberately not in object-count order: index order (300, 900, 84) differs
// from `sort=objects&order=desc` (900, 300, 84) so tests can tell them apart.
export const REPOS = [REPO_B, REPO_A, REPO_C];
export const PP_1 = {
ppId: "node_1",
@@ -237,6 +239,15 @@ export const STATS_OBJECT_TYPES = {
export const STATS_REASONS = {
"certificate expired: notAfter 2026-01-01T00:00:00Z": 1,
"manifest stale: thisUpdate in the past": 1,
"manifest is not valid at validation_time: this_update=2023-01-01T00:00:00Z": 3,
"manifest is not valid at validation_time: this_update=2024-06-01T00:00:00Z": 2,
};
export const STATS_OVERVIEW = {
publicationPoints: 4,
objects: 1284,
repos: REPOS.length,
vrps: 987,
aspas: 12,
};
export const ROA_PROJECTION = {
@@ -270,6 +281,43 @@ export const ROA_PROJECTION = {
},
],
},
// CMS wrapper with the embedded EE certificate (real query service shape).
signedObject: {
signedData: {
certificates: [
{
resourceCertificate: {
kind: "Ee",
version: 3,
serialNumberHex: "0E65A501",
issuer: "CN=A9114E750000, serialNumber=5A179648",
subject: "CN=alice-roa-ee, serialNumber=0E65A501",
validity: { notBefore: "2026-07-23T00:30:06Z", notAfter: "2027-01-01T00:00:00Z" },
signatureAlgorithm: "1.2.840.113549.1.1.11",
extensions: {
subjectKeyIdentifier: "aa11bb22cc33dd44ee55ff66778899aabbccdd",
authorityKeyIdentifier: "5a179648b3ef2369dce7bdb58140ff7dc7060abf",
ipResources: {
families: [
{
afi: "Ipv4",
choice: {
AddressesOrRanges: [
{ Prefix: { addr: [203, 0, 113, 0], afi: "Ipv4", prefix_len: 24 } },
],
},
},
],
},
asResources: {
asnum: { AsIdsOrRanges: [{ Id: 65001 }] },
},
},
},
},
],
},
},
},
schemaVersion: 2,
tool: "rpki",
@@ -373,7 +421,24 @@ export const CER_PROJECTION = {
},
asResources: {
asnum: {
AsIdsOrRanges: [{ Id: 38008 }, { Id: 38023 }, { Range: { min: 65536, max: 65551 } }],
// 15 entries (> 12 collapsed limit) to exercise the "+N more" expand toggle.
AsIdsOrRanges: [
{ Id: 38008 },
{ Id: 38023 },
{ Range: { min: 65536, max: 65551 } },
{ Id: 64496 },
{ Id: 64497 },
{ Id: 64498 },
{ Id: 64499 },
{ Id: 64500 },
{ Id: 64501 },
{ Id: 64502 },
{ Id: 64503 },
{ Id: 64504 },
{ Id: 64505 },
{ Id: 64506 },
{ Id: 64507 },
],
},
},
},