docs: use tdengine checks in split runbook

This commit is contained in:
lingniu
2026-07-01 06:25:20 +08:00
parent 6bc36eb5a8
commit 3d4676adf3
2 changed files with 38 additions and 8 deletions

View File

@@ -107,6 +107,21 @@ class PortainerComposeResourceLimitsTest {
.doesNotContain("Vehicle state can also be enabled from this runtime");
}
@Test
void splitRunbookUsesTdengineHistoryVerificationInsteadOfEventFileStore() throws IOException {
String splitRunbook = Files.readString(repositoryRoot()
.resolve("docs/operations/gb32960-service-split-runbook.md"));
assertThat(splitRunbook)
.contains("TDENGINE_HISTORY_ENABLED=true")
.contains("SELECT COUNT(*) FROM raw_frames")
.contains("SELECT COUNT(*) FROM vehicle_locations")
.doesNotContain("EVENT_FILE_STORE_PATH")
.doesNotContain("target/split-event-store")
.doesNotContain("event-store files")
.doesNotContain("/api/event-history/records?");
}
@Test
void vehicleAnalyticsComposeOnlyExposesStatConsumerEnvironment() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));