|
8 | 8 | import org.elasticsearch.ElasticsearchException; |
9 | 9 | import org.elasticsearch.action.ShardOperationFailedException; |
10 | 10 | import org.elasticsearch.action.search.ShardSearchFailure; |
11 | | -import org.elasticsearch.common.Strings; |
12 | 11 | import org.elasticsearch.common.xcontent.ToXContent; |
13 | 12 | import org.elasticsearch.common.xcontent.XContentParser; |
14 | 13 | import org.elasticsearch.test.AbstractXContentTestCase; |
@@ -63,7 +62,7 @@ private static GraphExploreResponse createInstance(int numFailures) { |
63 | 62 |
|
64 | 63 | @Override |
65 | 64 | protected String[] getShuffleFieldsExceptions() { |
66 | | - return new String[]{"vertices"}; |
| 65 | + return new String[]{"vertices", "connections"}; |
67 | 66 | } |
68 | 67 |
|
69 | 68 | private static GraphExploreResponse createTestInstanceWithFailures() { |
@@ -115,7 +114,8 @@ public void testFromXContentWithFailures() throws IOException { |
115 | 114 | boolean supportsUnknownFields = true; |
116 | 115 | //exceptions are not of the same type whenever parsed back |
117 | 116 | boolean assertToXContentEquivalence = false; |
118 | | - AbstractXContentTestCase.testFromXContent(NUMBER_OF_TEST_RUNS, instanceSupplier, supportsUnknownFields, Strings.EMPTY_ARRAY, |
| 117 | + AbstractXContentTestCase.testFromXContent( |
| 118 | + NUMBER_OF_TEST_RUNS, instanceSupplier, supportsUnknownFields, getShuffleFieldsExceptions(), |
119 | 119 | getRandomFieldsExcludeFilterWhenResultHasErrors(), this::createParser, this::doParseInstance, |
120 | 120 | this::assertEqualInstances, assertToXContentEquivalence, ToXContent.EMPTY_PARAMS); |
121 | 121 | } |
|
0 commit comments