diff --git a/application/build.gradle.kts b/application/build.gradle.kts index 3c53a58..03028a0 100644 --- a/application/build.gradle.kts +++ b/application/build.gradle.kts @@ -27,6 +27,9 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter-engine") testImplementation("org.junit.jupiter:junit-jupiter-params") testImplementation("org.mockito:mockito-junit-jupiter") + + // Generate test and integration test reports + jacocoAggregation(project(":application")) } tasks.withType { diff --git a/application/src/main/java/org/gxf/soapbridge/application/configuration/SoapEndpointMapping.java b/application/src/main/java/org/gxf/soapbridge/application/configuration/SoapEndpointMapping.java index 81136a8..cdd5c6a 100644 --- a/application/src/main/java/org/gxf/soapbridge/application/configuration/SoapEndpointMapping.java +++ b/application/src/main/java/org/gxf/soapbridge/application/configuration/SoapEndpointMapping.java @@ -20,6 +20,11 @@ public SoapEndpointMapping(final SoapEndpoint soapEndpoint) { @Override protected Object getHandlerInternal(@NotNull final HttpServletRequest request) { - return soapEndpoint; + if (request.getServletPath().startsWith("/actuator")) { + // Let Spring handle this routing + return null; + } else { + return soapEndpoint; + } } } diff --git a/application/src/main/kotlin/org/gxf/soapbridge/configuration/SecurityConfiguration.kt b/application/src/main/kotlin/org/gxf/soapbridge/configuration/SecurityConfiguration.kt index 5a63b01..4f4eab4 100644 --- a/application/src/main/kotlin/org/gxf/soapbridge/configuration/SecurityConfiguration.kt +++ b/application/src/main/kotlin/org/gxf/soapbridge/configuration/SecurityConfiguration.kt @@ -18,6 +18,7 @@ class SecurityConfiguration { fun filterChain(http: HttpSecurity): SecurityFilterChain = http.authorizeHttpRequests { it + .requestMatchers("/actuator/**").permitAll() .anyRequest().authenticated() }.x509 { it diff --git a/application/src/main/resources/application-dev.yml b/application/src/main/resources/application-dev.yml index 427a305..59112eb 100644 --- a/application/src/main/resources/application-dev.yml +++ b/application/src/main/resources/application-dev.yml @@ -3,7 +3,6 @@ logging: org: gxf: soapbridge: DEBUG - spring: kafka: bootstrap-servers: localhost:9092 @@ -46,3 +45,14 @@ soap: port: 443 protocol: https time-out: 45 + +management: + server: + port: 8888 + # ssl: + # enabled: false + # client-auth: none + endpoints: + web: + exposure: + include: health