chore: expose history dlq in launchctl
This commit is contained in:
@@ -149,6 +149,21 @@ class PortainerComposeResourceLimitsTest {
|
||||
.contains("keepAlive、连接超时和 TLS PEM 参数");
|
||||
}
|
||||
|
||||
@Test
|
||||
void localLaunchctlTemplatesExposeHistoryConsumerDeadLetterTopic() throws IOException {
|
||||
Path launchctl = repositoryRoot().resolve("deploy/local/launchctl");
|
||||
String readme = Files.readString(launchctl.resolve("README.md"));
|
||||
String renderer = Files.readString(launchctl.resolve("render.py"));
|
||||
String historyTemplate = Files.readString(launchctl.resolve("com.lingniu.vehicle-history.plist.template"));
|
||||
|
||||
assertThat(readme)
|
||||
.contains("export KAFKA_TOPIC_HISTORY_DLQ='vehicle.dlq.history.v1'");
|
||||
assertThat(renderer)
|
||||
.contains("\"__KAFKA_TOPIC_HISTORY_DLQ__\": env(\"KAFKA_TOPIC_HISTORY_DLQ\", \"vehicle.dlq.history.v1\")");
|
||||
assertThat(historyTemplate)
|
||||
.contains("<key>KAFKA_TOPIC_HISTORY_DLQ</key>\n <string>__KAFKA_TOPIC_HISTORY_DLQ__</string>");
|
||||
}
|
||||
|
||||
@Test
|
||||
void localLaunchctlTemplatesCoverActiveProductionApps() throws IOException {
|
||||
Path launchctl = repositoryRoot().resolve("deploy/local/launchctl");
|
||||
|
||||
Reference in New Issue
Block a user