docs: clarify analytics runtime scope

This commit is contained in:
lingniu
2026-07-01 06:15:43 +08:00
parent f91fa21463
commit 6bc36eb5a8
2 changed files with 17 additions and 4 deletions

View File

@@ -93,6 +93,20 @@ class PortainerComposeResourceLimitsTest {
.doesNotContain("shared volume mounted to all three services");
}
@Test
void splitRunbookKeepsAnalyticsAsJt808MetricRuntimeOnly() throws IOException {
String splitRunbook = Files.readString(repositoryRoot()
.resolve("docs/operations/gb32960-service-split-runbook.md"));
assertThat(splitRunbook)
.contains("Consume JT808 event Kafka records")
.contains("vehicle_stat_metric")
.doesNotContain("Analytics state:")
.doesNotContain("VEHICLE_STATE_ENABLED")
.doesNotContain("latest-state API in analytics")
.doesNotContain("Vehicle state can also be enabled from this runtime");
}
@Test
void vehicleAnalyticsComposeOnlyExposesStatConsumerEnvironment() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));