From 6fa067a2a08be7a726804b46c29f1bbfe2be0a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Witek?= Date: Tue, 18 Feb 2020 11:57:03 +0100 Subject: [PATCH] Relax assertions on memory_estimation.* fields (#52452) (#52458) --- .../test/ml/explain_data_frame_analytics.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/explain_data_frame_analytics.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/explain_data_frame_analytics.yml index f4296427256..d567003313b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/explain_data_frame_analytics.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/explain_data_frame_analytics.yml @@ -125,8 +125,10 @@ body: source: { index: "index-source" } analysis: { outlier_detection: {} } - - match: { memory_estimation.expected_memory_without_disk: "3kb" } - - match: { memory_estimation.expected_memory_with_disk: "3kb" } + - match: + memory_estimation.expected_memory_without_disk: / \dkb / + - match: + memory_estimation.expected_memory_with_disk: / \dkb / - length: { field_selection: 2 } - match: { field_selection.0.name: "x" } - match: { field_selection.0.mapping_types: ["float"] } @@ -153,8 +155,10 @@ body: source: { index: "index-source" } analysis: { outlier_detection: {} } - - match: { memory_estimation.expected_memory_without_disk: "4kb" } - - match: { memory_estimation.expected_memory_with_disk: "4kb" } + - match: + memory_estimation.expected_memory_without_disk: / \dkb / + - match: + memory_estimation.expected_memory_with_disk: / \dkb / - do: index: @@ -168,8 +172,10 @@ body: source: { index: "index-source" } analysis: { outlier_detection: {} } - - match: { memory_estimation.expected_memory_without_disk: "6kb" } - - match: { memory_estimation.expected_memory_with_disk: "5kb" } + - match: + memory_estimation.expected_memory_without_disk: / \dkb / + - match: + memory_estimation.expected_memory_with_disk: / \dkb / --- "Test field_selection given body":