From e81d8dcab574cfa57179f835a428360e6e8aa2d0 Mon Sep 17 00:00:00 2001 From: lingniu Date: Wed, 1 Jul 2026 12:19:26 +0800 Subject: [PATCH] docs: align launchctl health probe checks --- deploy/local/launchctl/README.md | 6 ++++++ .../PortainerComposeResourceLimitsTest.java | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/deploy/local/launchctl/README.md b/deploy/local/launchctl/README.md index dd8fd30d..9a4cee7c 100644 --- a/deploy/local/launchctl/README.md +++ b/deploy/local/launchctl/README.md @@ -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: diff --git a/modules/apps/vehicle-history-app/src/test/java/com/lingniu/ingest/historyapp/PortainerComposeResourceLimitsTest.java b/modules/apps/vehicle-history-app/src/test/java/com/lingniu/ingest/historyapp/PortainerComposeResourceLimitsTest.java index 2a84e2df..f3ab4209 100644 --- a/modules/apps/vehicle-history-app/src/test/java/com/lingniu/ingest/historyapp/PortainerComposeResourceLimitsTest.java +++ b/modules/apps/vehicle-history-app/src/test/java/com/lingniu/ingest/historyapp/PortainerComposeResourceLimitsTest.java @@ -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"));