-
Bug
-
Resolution: Done
-
Major
-
25.0.0.Beta1
-
None
In the fix introduce in WFLY-15281 we correctly returned the expected JSON object with Health DOWN value in https://github.com/wildfly/wildfly/blob/main/health/src/main/java/org/wildfly/extension/health/HealthContextService.java#L133. However, this not correctly processing MP Health config values defined in the specification (mp.health.default.readiness.empty.response and mp.health.default.startup.empty.response) which leads to intermittent failures in tests that set these values to UP. K8s environments would still process 503 responses correctly, however, in our tests we need to assert the correct health response was returned so the correct fix would be to return something that K8s reject and tests don't process as valid response so I suggest to use 404 status code to act as the endpoint was not booted yet which is a case that is actually happening and handled in tests here - https://github.com/wildfly/wildfly/blob/main/testsuite/integration/manualmode/src/test/java/org/wildfly/test/manual/microprofile/health/MicroProfileHealthDefaultEmptyStartupHTTPEndpointTestCase.java#L63.
- is cloned by
-
JBEAP-23249 Possible intermittent failures in MicroProfileHealthDefaultEmpty*HTTPEndpointTestCases in XP
- Closed
- relates to
-
WFLY-15281 JsonParsingException in MicroProfileHealthDefaultEmpty*HTTPEndpointTestCase manual mode tests causing intermittent failures
- Closed