The integration test tries to connect to zookeeper, when I test my code with TestRestTemplate
and spring-cloud-zookeeper-discovery
dependency. If zookeeper is not running the test throws an exception.
Here is simple project where you can reproduce the problem https://github.com/DenisGlot/disable-zookeeper-when-testing
How can I make the test skip connecting to zookeeper part?