I like to run my unit test with test spring profile without consul. I'm trying to use spring.cloud.config.enabled:false
and disabling EnableDiscoveryClient
annotation for test profile but it doesn't work.
I'm using spring.cloud.consul 1.0.0.BUILD-SNAPSHOT
.
Here is the exception:
com.ecwid.consul.transport.TransportException: java.net.ConnectException: Connection refused: connect at com.ecwid.consul.transport.DefaultHttpTransport.executeRequest(DefaultHttpTransport.java:87) at com.ecwid.consul.transport.DefaultHttpTransport.makeGetRequest(DefaultHttpTransport.java:46) at com.ecwid.consul.v1.ConsulRawClient.makeGetRequest(ConsulRawClient.java:66)
spring.cloud.config.enabled:false
and how did you disableEnableDiscoveryClient
? The full exception would be helpful to see if it came from discovery or config. – Martins