|
77 | 77 | * load constant field values and have simple mappings. |
78 | 78 | */ |
79 | 79 | public class AllSupportedFieldsTestCase extends ESRestTestCase { |
80 | | - private static final Logger logger = LogManager.getLogger(FieldExtractorTestCase.class); |
81 | 80 |
|
82 | 81 | @Rule(order = Integer.MIN_VALUE) |
83 | 82 | public ProfileLogger profileLogger = new ProfileLogger(); |
@@ -223,7 +222,7 @@ public void createIndices() throws IOException { |
223 | 222 | * Make sure the test doesn't run on snapshot builds. Release builds only. |
224 | 223 | * <p> |
225 | 224 | * {@link Build#isSnapshot()} checks if the version under test is a snapshot. |
226 | | - * But! This run test runs against many versions and if *any* are snapshots |
| 225 | + * But! This test runs against many versions and if *any* are snapshots |
227 | 226 | * then this will fail. So we check the versions of each node in the cluster too. |
228 | 227 | * </p> |
229 | 228 | */ |
@@ -347,7 +346,7 @@ public final void testFetchDenseVector() throws IOException { |
347 | 346 | String indexName = e.getKey(); |
348 | 347 | NodeInfo nodeInfo = e.getValue(); |
349 | 348 | MapMatcher expectedValues = matchesMap(); |
350 | | - expectedValues = expectedValues.entry("f_dense_vector", expectedDenseVector(nodeInfo.version)); |
| 349 | + expectedValues = expectedValues.entry("f_dense_vector", matchesList().item(0.5).item(10.0).item(5.9999995)); |
351 | 350 | expectedValues = expectedValues.entry("_index", indexName); |
352 | 351 | expectedAllValues = expectedAllValues.entry(indexName, expectedValues); |
353 | 352 | } |
@@ -412,7 +411,6 @@ public final void testFetchAggregateMetricDouble() throws IOException { |
412 | 411 | MapMatcher expectedAllValues = matchesMap(); |
413 | 412 | for (Map.Entry<String, NodeInfo> e : expectedIndices().entrySet()) { |
414 | 413 | String indexName = e.getKey(); |
415 | | - NodeInfo nodeInfo = e.getValue(); |
416 | 414 | MapMatcher expectedValues = matchesMap(); |
417 | 415 | expectedValues = expectedValues.entry( |
418 | 416 | "f_aggregate_metric_double", |
@@ -651,12 +649,6 @@ private Matcher<?> expectedValue(DataType type, TransportVersion coordinatorVers |
651 | 649 | }; |
652 | 650 | } |
653 | 651 |
|
654 | | - private Matcher<List<?>> expectedDenseVector(TransportVersion version) { |
655 | | - return version.supports(INDEX_SOURCE) // *after* 9.1 |
656 | | - ? matchesList().item(0.5).item(10.0).item(5.9999995) |
657 | | - : matchesList().item(0.04283529).item(0.85670584).item(0.5140235); |
658 | | - } |
659 | | - |
660 | 652 | /** |
661 | 653 | * Is the type supported in indices? |
662 | 654 | */ |
|
0 commit comments