Skip to content

Commit

Permalink
updated default healthchecks status codes and endpoints for 5.2 alfre…
Browse files Browse the repository at this point in the history
…sco and share
  • Loading branch information
thijslemmens committed Dec 7, 2023
1 parent 185f797 commit b18167c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Objects;

public class HealthCheck {
public static final String ALFRESCO_DEFAULT_LIVE_PROBE = "http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/probes/-live-";
public static final String ALFRESCO_DEFAULT_LIVE_PROBE = "http://localhost:8080/alfresco";
public static final String SHARE_DEFAULT_LIVE_PROBE = "http://localhost:8080/share";

public static final int DEFAULT_TIMEOUT = 2000;
Expand All @@ -36,7 +36,7 @@ public static void main(String[] args) throws IOException, InterruptedException
exitCode = healthCheck(ALFRESCO_DEFAULT_LIVE_PROBE, 0, args);
}
if (configuration.isShareEnabled()) {
exitCode = healthCheck(SHARE_DEFAULT_LIVE_PROBE, 302, args);
exitCode = healthCheck(SHARE_DEFAULT_LIVE_PROBE, 0, args);
}
System.exit(exitCode);
}
Expand Down

0 comments on commit b18167c

Please sign in to comment.