Clone
Jeff Mesnil <jmesnil@gmail.com>
committed
on 25 Nov 19
[WFLY-12811] Fix injection of MP Config in HealthCheck bean
* When HealthChecks are called from WildFly management endpoints for
health, s… Show more
[WFLY-12811] Fix injection of MP Config in HealthCheck bean

* When HealthChecks are called from WildFly management endpoints for

 health, set the TCCL to the DeploymentUnit's classloader so that resources that

 depend on it (such as MicroProfile Config) can be properly loaded.

* Add a ConfigProperty to MicroProfileHealthTestBase test whose value

 is only set in a ConfigSource inside the deployment to ensure that if

 the TCCL was not correct, the property would not be found and the test

 would fail.

JIRA: https://issues.jboss.org/browse/WFLY-12811

Show less