chore: decouple portainer consumer startup

This commit is contained in:
lingniu
2026-07-01 16:13:24 +08:00
parent 68253901cf
commit 2e6a982af5
2 changed files with 10 additions and 9 deletions

View File

@@ -601,13 +601,20 @@ class PortainerComposeResourceLimitsTest {
}
@Test
void vehicleAnalyticsComposeDependsOnlyOnJt808Ingest() throws IOException {
void kafkaConsumerAppsDoNotDependOnProtocolIngestContainers() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
String historyService = serviceBlock(compose, "vehicle-history-app");
String analyticsService = serviceBlock(compose, "vehicle-analytics-app");
assertThat(analyticsService)
.contains(" depends_on:\n - jt808-ingest-app")
assertThat(historyService)
.doesNotContain(" depends_on:")
.doesNotContain("- gb32960-ingest-app")
.doesNotContain("- jt808-ingest-app")
.doesNotContain("- yutong-mqtt-app");
assertThat(analyticsService)
.doesNotContain(" depends_on:")
.doesNotContain("- gb32960-ingest-app")
.doesNotContain("- jt808-ingest-app")
.doesNotContain("- yutong-mqtt-app");
}