Renames httpClient bean to gatewayHttpClient.

fixes gh-1134
This commit is contained in:
Spencer Gibb
2019-07-03 13:41:55 -04:00
parent c14a749e84
commit 7471a41fde
2 changed files with 2 additions and 1 deletions

View File

@@ -516,7 +516,7 @@ public class GatewayAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public HttpClient httpClient(HttpClientProperties properties) {
public HttpClient gatewayHttpClient(HttpClientProperties properties) {
// configure pool resources
HttpClientProperties.Pool pool = properties.getPool();

View File

@@ -55,6 +55,7 @@ public class GatewayAutoConfigurationTests {
GatewayAutoConfiguration.class))
.withPropertyValues("debug=true").run(context -> {
assertThat(context).hasSingleBean(HttpClient.class);
assertThat(context).hasBean("gatewayHttpClient");
HttpClient httpClient = context.getBean(HttpClient.class);
/*
* FIXME: 2.1.0 HttpClientOptions options = httpClient.options();