Commit b2301434 by Dave Syer

Align with API changes from config client

parent cdf34fdd
...@@ -72,7 +72,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests { ...@@ -72,7 +72,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests {
Mockito.verify(this.client).getNextServerFromEureka("CONFIGSERVER", false); Mockito.verify(this.client).getNextServerFromEureka("CONFIGSERVER", false);
ConfigClientProperties locator = this.context ConfigClientProperties locator = this.context
.getBean(ConfigClientProperties.class); .getBean(ConfigClientProperties.class);
assertEquals("http://foo:7001/", locator.getUri()); assertEquals("http://foo:7001/", locator.getRawUri());
} }
@Test @Test
...@@ -83,7 +83,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests { ...@@ -83,7 +83,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests {
setup("spring.cloud.config.discovery.enabled=true"); setup("spring.cloud.config.discovery.enabled=true");
ConfigClientProperties locator = this.context ConfigClientProperties locator = this.context
.getBean(ConfigClientProperties.class); .getBean(ConfigClientProperties.class);
assertEquals("http://foo:7001/", locator.getUri()); assertEquals("http://foo:7001/", locator.getRawUri());
assertEquals("bar", locator.getPassword()); assertEquals("bar", locator.getPassword());
assertEquals("user", locator.getUsername()); assertEquals("user", locator.getUsername());
} }
...@@ -96,7 +96,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests { ...@@ -96,7 +96,7 @@ public class DiscoveryClientConfigServiceBootstrapConfigurationTests {
setup("spring.cloud.config.discovery.enabled=true"); setup("spring.cloud.config.discovery.enabled=true");
ConfigClientProperties locator = this.context ConfigClientProperties locator = this.context
.getBean(ConfigClientProperties.class); .getBean(ConfigClientProperties.class);
assertEquals("http://foo:7001/bar", locator.getUri()); assertEquals("http://foo:7001/bar", locator.getRawUri());
} }
private void setup(String... env) { private void setup(String... env) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment