docs: align launchctl health probe checks
This commit is contained in:
@@ -84,8 +84,14 @@ launchctl bootout "gui/$(id -u)" "$HOME/Library/LaunchAgents/com.lingniu.vehicle
|
||||
|
||||
```bash
|
||||
curl -sS http://127.0.0.1:20100/actuator/health
|
||||
curl -sS http://127.0.0.1:20100/actuator/health/liveness
|
||||
curl -sS http://127.0.0.1:20100/actuator/health/readiness
|
||||
curl -sS http://127.0.0.1:20400/actuator/health
|
||||
curl -sS http://127.0.0.1:20400/actuator/health/liveness
|
||||
curl -sS http://127.0.0.1:20400/actuator/health/readiness
|
||||
curl -sS http://127.0.0.1:20200/actuator/health
|
||||
curl -sS http://127.0.0.1:20200/actuator/health/liveness
|
||||
curl -sS http://127.0.0.1:20200/actuator/health/readiness
|
||||
```
|
||||
|
||||
Swagger:
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user