docs: align history and analytics production surface

This commit is contained in:
lingniu
2026-07-01 14:13:14 +08:00
parent 476d5a7a14
commit eeba8fb754
4 changed files with 30 additions and 8 deletions

View File

@@ -380,6 +380,28 @@ class MavenModuleProfileTest {
.doesNotContain("Spring Boot 3.4.x");
}
@Test
void productionDocsMatchCompactHistoryAndJt808OnlyAnalyticsSurface() throws Exception {
String moduleDataFlow = Files.readString(repositoryRoot().resolve("docs/module-data-flow.html"));
String tdengineVerification = Files.readString(repositoryRoot()
.resolve("docs/operations/vehicle-ingest-tdengine-verification.md"));
String runbook = Files.readString(repositoryRoot()
.resolve("docs/operations/gb32960-service-split-runbook.md"));
assertThat(moduleDataFlow)
.contains("TDengine raw_frames + locations")
.contains("TDengine <code>raw_frames</code> 和位置表")
.doesNotContain("telemetry field 行映射")
.doesNotContain("可选 telemetry field 表");
assertThat(tdengineVerification)
.contains("history 写入 raw、location 到 TDengine不写 telemetry_fields")
.doesNotContain("按需开启 telemetry field");
assertThat(runbook)
.contains("| `vehicle.event.gb32960.v1` | `gb32960-ingest-app` | `vehicle-history-app` |")
.contains("| `vehicle.event.jt808.v1` | `jt808-ingest-app` | `vehicle-history-app`, `vehicle-analytics-app` |")
.doesNotContain("| `vehicle.event.gb32960.v1` | `gb32960-ingest-app` | `vehicle-history-app`, `vehicle-analytics-app` |");
}
@Test
void supersededDesignDocsPointToCurrentArchitecture() throws Exception {
for (String path : List.of(