chore: decouple analytics portainer startup
This commit is contained in:
@@ -498,6 +498,17 @@ class PortainerComposeResourceLimitsTest {
|
||||
.doesNotContain("VEHICLE_STATE_ENABLED");
|
||||
}
|
||||
|
||||
@Test
|
||||
void vehicleAnalyticsComposeDependsOnlyOnJt808Ingest() throws IOException {
|
||||
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||
String analyticsService = serviceBlock(compose, "vehicle-analytics-app");
|
||||
|
||||
assertThat(analyticsService)
|
||||
.contains(" depends_on:\n - jt808-ingest-app")
|
||||
.doesNotContain("- gb32960-ingest-app")
|
||||
.doesNotContain("- yutong-mqtt-app");
|
||||
}
|
||||
|
||||
@Test
|
||||
void vehicleAnalyticsDoesNotInheritRedisStateEnvironment() throws IOException {
|
||||
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||
|
||||
Reference in New Issue
Block a user