]
Dan Berindei updated ISPN-12263:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
RemoteCacheMetricBinderTest fails
---------------------------------
Key: ISPN-12263
URL:
https://issues.redhat.com/browse/ISPN-12263
Project: Infinispan
Issue Type: Bug
Components: Spring Integration
Affects Versions: 12.0.0.Dev02
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Labels: testsuite_stability
Fix For: 12.0.0.Dev03
{{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
{noformat}
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 70.094 s - in
test.org.infinispan.spring.starter.remote.actuator.RemoteCacheMetricBinderTest
{noformat}
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