From d708432853d61caf4145781318e1e91f7c0b9bc8 Mon Sep 17 00:00:00 2001 From: Ankit Singh Date: Tue, 18 Jul 2023 23:58:45 +0530 Subject: [PATCH] test debug Signed-off-by: Ankit Singh --- .../eclipse/jkube/quarkus/QuarkusUtils.java | 7 ---- .../enricher/QuarkusHealthCheckEnricher.java | 5 +-- .../jkube/quarkus/QuarkusUtilsTest.java | 41 ++++--------------- .../QuarkusGeneratorExposedPortsTest.java | 2 +- .../src/main/resources/application.properties | 3 +- 5 files changed, 13 insertions(+), 45 deletions(-) diff --git a/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/QuarkusUtils.java b/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/QuarkusUtils.java index c91f989ab2..c5a8345a8d 100644 --- a/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/QuarkusUtils.java +++ b/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/QuarkusUtils.java @@ -64,13 +64,6 @@ public class QuarkusUtils { private QuarkusUtils() {} public static String extractPort(Properties properties, String defaultValue) { - // final Optional activeProfile = getActiveProfile(javaProject); - // if (activeProfile.isPresent()) { - // final String profilePort = properties.getProperty(String.format("%%%s.%s", activeProfile.get(), QUARKUS_HTTP_PORT)); - // if (StringUtils.isNotBlank(profilePort)) { - // return profilePort; - // } - // } return properties.getProperty(QUARKUS_HTTP_PORT, defaultValue); } diff --git a/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/enricher/QuarkusHealthCheckEnricher.java b/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/enricher/QuarkusHealthCheckEnricher.java index a894858e49..96d5d8fa71 100644 --- a/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/enricher/QuarkusHealthCheckEnricher.java +++ b/jkube-kit/jkube-kit-quarkus/src/main/java/org/eclipse/jkube/quarkus/enricher/QuarkusHealthCheckEnricher.java @@ -90,9 +90,8 @@ private Probe discoverQuarkusHealthCheck(int initialDelay, Function