From 31e32aa420efd6f6d4d620cd556c3adb88b20b51 Mon Sep 17 00:00:00 2001 From: David Roberts Date: Sun, 3 May 2020 21:07:51 +0100 Subject: [PATCH] [TEST] Allow more warnings about multiple template matches (#56085) Adds some extra allowed warnings about multiple index templates matching on index creation of the same type that were added in #56038. --- .../test/indices.create/20_mix_typeless_typeful.yml | 9 +++++++++ .../test/upgraded_cluster/110_geo_shape.yml | 4 ++++ .../test/upgraded_cluster/40_ml_datafeed_crud.yml | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_mix_typeless_typeful.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_mix_typeless_typeful.yml index a05134866628b..bd791b9ac1caf 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_mix_typeless_typeful.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_mix_typeless_typeful.yml @@ -4,6 +4,7 @@ - skip: version: " - 6.6.99" reason: Merging typeless/typed mappings/templates was added in 6.7 + features: allowed_warnings - do: indices.put_template: @@ -18,6 +19,8 @@ type: keyword - do: + allowed_warnings: + - "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template" indices.create: index: test-1 body: @@ -42,6 +45,7 @@ - skip: version: " - 6.6.99" reason: Merging typeless/typed mappings/templates was added in 6.7 + features: allowed_warnings - do: indices.put_template: @@ -55,6 +59,8 @@ type: keyword - do: + allowed_warnings: + - "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template" indices.create: include_type_name: true index: test-1 @@ -106,6 +112,7 @@ - skip: version: " - 6.99.99" reason: needs typeless index operations to work on typed indices + features: allowed_warnings - do: indices.put_template: @@ -120,6 +127,8 @@ type: keyword - do: + allowed_warnings: + - "index [test-1] matches multiple v1 templates [global, test_template], v2 index templates will only match a single index template" index: index: test-1 body: { bar: 42 } diff --git a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/110_geo_shape.yml b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/110_geo_shape.yml index 1c4ddccdc3fb1..d69bc3c73a0a8 100644 --- a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/110_geo_shape.yml +++ b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/110_geo_shape.yml @@ -1,6 +1,10 @@ --- "Test upgraded > 7.7 cluster with pre-7.8 and 7.8+ geo_shape fields": + - skip: + features: allowed_warnings - do: + allowed_warnings: + - "index [new_locations] matches multiple v1 templates [global, template], v2 index templates will only match a single index template" indices.create: index: new_locations body: diff --git a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/40_ml_datafeed_crud.yml b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/40_ml_datafeed_crud.yml index 63f54e729d445..42305dc93a8f1 100644 --- a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/40_ml_datafeed_crud.yml +++ b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/upgraded_cluster/40_ml_datafeed_crud.yml @@ -8,7 +8,11 @@ setup: --- "Test old and mixed cluster datafeeds without aggs": + - skip: + features: allowed_warnings - do: + allowed_warnings: + - "index [airline-data] matches multiple v1 templates [global, template], v2 index templates will only match a single index template" indices.create: index: airline-data body: @@ -108,6 +112,8 @@ setup: - skip: features: allowed_warnings - do: + allowed_warnings: + - "index [airline-data] matches multiple v1 templates [global, template], v2 index templates will only match a single index template" indices.create: index: airline-data body: