Merge branch '2.6.x' into 2.7.x

Closes gh-29489
pull/29525/head
Andy Wilkinson 3 years ago
commit 1e4b786ff9

@ -55,7 +55,7 @@ class ElasticsearchRepositoriesAutoConfigurationTests {
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner() private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(ElasticsearchRestClientAutoConfiguration.class, .withConfiguration(AutoConfigurations.of(ElasticsearchRestClientAutoConfiguration.class,
ElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class)) ElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class))
.withPropertyValues("spring.elasticsearch.rest.uris=" + elasticsearch.getHttpHostAddress()); .withPropertyValues("spring.elasticsearch.uris=" + elasticsearch.getHttpHostAddress());
@Test @Test
void testDefaultRepositoryConfiguration() { void testDefaultRepositoryConfiguration() {

@ -55,9 +55,8 @@ class ReactiveElasticsearchRepositoriesAutoConfigurationTests {
.withConfiguration(AutoConfigurations.of(ReactiveElasticsearchRestClientAutoConfiguration.class, .withConfiguration(AutoConfigurations.of(ReactiveElasticsearchRestClientAutoConfiguration.class,
ReactiveElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class)) ReactiveElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class))
.withPropertyValues( .withPropertyValues(
"spring.data.elasticsearch.client.reactive.endpoints=" + elasticsearch.getHost() + ":" "spring.elasticsearch.uris=" + elasticsearch.getHost() + ":" + elasticsearch.getFirstMappedPort(),
+ elasticsearch.getFirstMappedPort(), "spring.elasticsearch.socket-timeout=30s");
"spring.data.elasticsearch.client.reactive.socket-timeout=30s");
@Test @Test
void testDefaultRepositoryConfiguration() { void testDefaultRepositoryConfiguration() {

Loading…
Cancel
Save