From 866b08716c4bb948f6c78c25bd52190d76e70ca7 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 27 Feb 2020 18:30:37 -0500 Subject: [PATCH] Fix test for top_metrics (#52927) I added the wrong skips and the wrong error message. Ooops. --- .../test/analytics/top_metrics.yml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml index 79a63c24799..c11d224731b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/analytics/top_metrics.yml @@ -1,7 +1,7 @@ --- "sort by long field": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -61,7 +61,7 @@ --- "sort by double field": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -115,7 +115,7 @@ --- "sort by scaled float field": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -169,7 +169,7 @@ --- "sort by keyword field fails": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -204,7 +204,7 @@ --- "sort by score": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -245,7 +245,7 @@ --- "sort by numeric script": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -276,7 +276,7 @@ --- "sort by string script fails": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -315,7 +315,7 @@ --- "sort by geo_distance": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -376,7 +376,7 @@ --- "inside terms": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -452,7 +452,7 @@ --- "size is index setting": - skip: - version: " - 7.7.0" + version: " - 7.6.99" reason: added in 7.7.0 - do: @@ -487,7 +487,7 @@ field: v sort: s: desc - - match: { error.root_cause.0.reason: "error building sort for field [s.keyword] of type [keyword] in index [test]: only supported on numeric fields" } + - match: { error.root_cause.0.reason: "[top_metrics.size] must not be more than [10] but was [100]. This limit can be set by changing the [index.top_metrics_max_size] index level setting." } - do: indices.put_settings: