Update zuul tests
This commit is contained in:
@@ -29,6 +29,10 @@
|
|||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-zuul</artifactId>
|
<artifactId>spring-cloud-starter-zuul</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-eureka</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import org.springframework.boot.test.SpringApplicationConfiguration;
|
|||||||
import org.springframework.boot.test.TestRestTemplate;
|
import org.springframework.boot.test.TestRestTemplate;
|
||||||
import org.springframework.boot.test.WebIntegrationTest;
|
import org.springframework.boot.test.WebIntegrationTest;
|
||||||
import org.springframework.cloud.client.discovery.DiscoveryClient;
|
import org.springframework.cloud.client.discovery.DiscoveryClient;
|
||||||
import org.springframework.cloud.client.discovery.noop.NoopDiscoveryClient;
|
import org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.test.annotation.DirtiesContext;
|
import org.springframework.test.annotation.DirtiesContext;
|
||||||
@@ -53,6 +53,6 @@ public class ZuulProxyApplicationTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void discoveryClientIsNoop() {
|
public void discoveryClientIsNoop() {
|
||||||
assertTrue("discoveryClient is wrong type", this.discoveryClient instanceof NoopDiscoveryClient);
|
assertTrue("discoveryClient is wrong type", this.discoveryClient instanceof EurekaDiscoveryClient);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
zuul/pom.xml
10
zuul/pom.xml
@@ -47,15 +47,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-netflix-core</artifactId>
|
<artifactId>spring-cloud-starter-zuul</artifactId>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.netflix.zuul</groupId>
|
|
||||||
<artifactId>zuul-core</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
|
||||||
<artifactId>spring-cloud-starter</artifactId>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user