Details
-
Bug
-
Resolution: Done
-
Major
-
12.0.0.Dev02
Description
RemoteCacheMetricBinderTest currently doesn't run at all, because of ISPN-12255. After fixing ISPN-12255, it still doesn't pass, but with Surefire the setup failure is reported just as
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 70.094 s - in test.org.infinispan.spring.starter.remote.actuator.RemoteCacheMetricBinderTest
When run in the IDE, multiple problems become apparent:
- InfinispanServerExtension.beforeTestExecution() runs too late, so the TestClient is not available in InfinispanCacheMetricBinderTest.binder()
- InfinispanServerExtension.afterTestExecution() runs too early, so the TestClient is no longer available in InfinispanCacheMetricBinderTest.cleanCache()
- The mycache cache is not defined on the server
- The RemoteCacheManager does not have statistics enabled