From ca846ae2d6e652e095f7fcc211eae9d312ed55d7 Mon Sep 17 00:00:00 2001 From: Kostas Krikellas <131142368+kkrik-es@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:10:47 +0300 Subject: [PATCH] [TEST] Assert that both time-series indexes are created (#100885) * Assert that both time-series indexes are created * Exclude from 8.7-8.10 mixedClusterTests * Restore asserts * Fix assert --- .../rest-api-spec/test/field_caps/40_time_series.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/field_caps/40_time_series.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/field_caps/40_time_series.yml index 2f99a11cce98a..e0d4b19a1a228 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/field_caps/40_time_series.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/field_caps/40_time_series.yml @@ -1,8 +1,8 @@ --- setup: - skip: - version: " - 8.0.99" - reason: introduced in 8.1.0 + version: " - 8.0.99, 8.7.00 - 8.9.99" + reason: introduced in 8.1.0, synthetic source shows up in the mapping in 8.10 and on, may trigger assert failures in mixed cluster tests - do: indices.create: @@ -176,6 +176,8 @@ setup: index: tsdb_index1,tsdb_index2 fields: [ "metricset", "non_tsdb_field", "k8s.pod.*" ] + - length: {indices: 2} + - match: {fields.metricset.keyword.searchable: true} - match: {fields.metricset.keyword.aggregatable: true} - is_false: fields.metricset.keyword.time_series_dimension