Skip to content

Commit 07f8d4f

Browse files
committed
1 parent 435c5a8 commit 07f8d4f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/test/java/org/springframework/data/elasticsearch/core/ElasticsearchIntegrationTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -2783,6 +2783,7 @@ public void shouldNotIncludeDefaultsGetIndexSettings() {
27832783
assertThat(settings).doesNotContainKey("index.max_result_window");
27842784
}
27852785

2786+
@DisabledIf(value = "newElasticsearchClient", disabledReason = "todo #2165, ES issue 286")
27862787
@Test // DATAES-709
27872788
public void shouldIncludeDefaultsOnGetIndexSettings() {
27882789

src/test/java/org/springframework/data/elasticsearch/core/ReactiveElasticsearchELCIntegrationTests.java

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ IndexNameProvider indexNameProvider() {
5656
return new IndexNameProvider("reactive-template");
5757
}
5858
}
59+
60+
@Override
61+
public boolean newElasticsearchClient() {
62+
return true;
63+
}
64+
5965
@Override
6066
protected Query getTermsAggsQuery(String aggsName, String aggsField) {
6167
return ELCQueries.getTermsAggsQuery(aggsName, aggsField);

src/test/java/org/springframework/data/elasticsearch/core/ReactiveElasticsearchIntegrationTests.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.junit.jupiter.api.DisplayName;
4646
import org.junit.jupiter.api.Order;
4747
import org.junit.jupiter.api.Test;
48+
import org.junit.jupiter.api.condition.DisabledIf;
4849
import org.skyscreamer.jsonassert.JSONAssert;
4950
import org.springframework.beans.factory.annotation.Autowired;
5051
import org.springframework.dao.DataAccessException;
@@ -54,6 +55,7 @@
5455
import org.springframework.data.domain.PageRequest;
5556
import org.springframework.data.domain.Pageable;
5657
import org.springframework.data.domain.Sort;
58+
import org.springframework.data.elasticsearch.NewElasticsearchClientDevelopment;
5759
import org.springframework.data.elasticsearch.RestStatusException;
5860
import org.springframework.data.elasticsearch.annotations.Document;
5961
import org.springframework.data.elasticsearch.annotations.Field;
@@ -88,7 +90,7 @@
8890
*/
8991
@SuppressWarnings("SpringJavaAutowiredMembersInspection")
9092
@SpringIntegrationTest
91-
public abstract class ReactiveElasticsearchIntegrationTests {
93+
public abstract class ReactiveElasticsearchIntegrationTests implements NewElasticsearchClientDevelopment {
9294

9395
@Autowired private ReactiveElasticsearchOperations operations;
9496
@Autowired private IndexNameProvider indexNameProvider;
@@ -1072,6 +1074,7 @@ void shouldReturnExplanationWhenRequested() {
10721074
}).verifyComplete();
10731075
}
10741076

1077+
@DisabledIf(value = "newElasticsearchClient", disabledReason = "todo #2165, ES issue 286")
10751078
@Test // #1646, #1718
10761079
@DisplayName("should return a list of info for specific index")
10771080
void shouldReturnInformationListOfAllIndices() {

0 commit comments

Comments
 (0)