docs: align launchctl health probe checks

This commit is contained in:
lingniu
2026-07-01 12:19:26 +08:00
parent a5b39e22b6
commit e81d8dcab5
2 changed files with 18 additions and 0 deletions

View File

@@ -99,6 +99,18 @@ class PortainerComposeResourceLimitsTest {
}
}
@Test
void localLaunchctlReadmeChecksLivenessAndReadinessForManagedApps() throws IOException {
String readme = Files.readString(repositoryRoot()
.resolve("deploy/local/launchctl/README.md"));
for (String httpPort : List.of("20100", "20400", "20200")) {
assertThat(readme)
.contains("curl -sS http://127.0.0.1:" + httpPort + "/actuator/health/liveness")
.contains("curl -sS http://127.0.0.1:" + httpPort + "/actuator/health/readiness");
}
}
@Test
void dockerEntrypointExecsJavaForSignalHandling() throws IOException {
String dockerfile = Files.readString(repositoryRoot().resolve("Dockerfile"));