refactor: remove archive volume from history compose

This commit is contained in:
lingniu
2026-07-01 05:49:36 +08:00
parent 25d762b52d
commit de97d072d4
2 changed files with 13 additions and 5 deletions

View File

@@ -48,6 +48,19 @@ class PortainerComposeResourceLimitsTest {
.doesNotContain("\n TDENGINE_DATABASE:");
}
@Test
void vehicleHistoryDoesNotExposeUnusedArchiveSinkSettings() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
String historyService = serviceBlock(compose, "vehicle-history-app");
assertThat(historyService)
.doesNotContain("SINK_ARCHIVE_ENABLED")
.doesNotContain("SINK_ARCHIVE_PATH")
.doesNotContain("/archive");
assertThat(compose)
.doesNotContain("vehicle-history-archive:");
}
@Test
void vehicleAnalyticsComposeOnlyExposesStatConsumerEnvironment() throws IOException {
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));