diff --git a/HealthCheck.java b/HealthCheck.java deleted file mode 100644 index 0aac2a6..0000000 --- a/HealthCheck.java +++ /dev/null @@ -1,20 +0,0 @@ -import java.io.IOException; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse.BodyHandlers; - -public class HealthCheck { - - public static void main(String[] args) throws InterruptedException, IOException { - var client = HttpClient.newHttpClient(); - var request = HttpRequest.newBuilder() - .uri(URI.create("http://localhost:8001/actuator/health")) - .header("accept", "application/json") - .build(); - var response = client.send(request, BodyHandlers.ofString()); - if (response.statusCode() != 200 || !response.body().contains("UP")) { - throw new RuntimeException("Healthcheck failed"); - } - } -} \ No newline at end of file