Fixed Integration Tests for spring-cloud submodules:
* spring-cloud-archaius/basic-config * spring-cloud-aws * spring-cloud-bootstrap projects
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ public class GatewayApplication {
|
||||
InstanceInfo instance = eurekaClient.getNextServerFromEureka("zipkin", false);
|
||||
if (!(baseUrl != null && instance.getHomePageUrl().equals(baseUrl))) {
|
||||
baseUrl = instance.getHomePageUrl();
|
||||
delegate = new HttpZipkinSpanReporter(baseUrl, zipkinProperties.getFlushInterval(), zipkinProperties.getCompression().isEnabled(), spanMetricReporter);
|
||||
delegate = new HttpZipkinSpanReporter(new RestTemplate(), baseUrl, zipkinProperties.getFlushInterval(), spanMetricReporter);
|
||||
if (!span.name.matches(skipPattern)) delegate.report(span);
|
||||
}
|
||||
if (!span.name.matches(skipPattern)) delegate.report(span);
|
||||
|
||||
+7
-1
@@ -7,9 +7,15 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.spring.cloud.bootstrap.gateway.GatewayApplication;
|
||||
|
||||
/**
|
||||
*
|
||||
* This Live Test requires:
|
||||
* * A Redis instance running in port 6379 (e.g. using `docker run --name some-redis -p 6379:6379 -d redis`)
|
||||
*
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = GatewayApplication.class)
|
||||
public class SpringContextIntegrationTest {
|
||||
public class SpringContextLiveTest {
|
||||
|
||||
@Test
|
||||
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
|
||||
@@ -0,0 +1,2 @@
|
||||
# This property would be provided by the config service in a real-case scenario
|
||||
spring.sleuth.web.skipPattern=(^cleanup.|.+favicon.)
|
||||
Reference in New Issue
Block a user