Skip to content

Commit 2bd0510

Browse files
authored
[TEST] Allow kb or mb for data frame analytics memory estimate (#54869)
This change is to support the switch from kb to mb being made in elastic/ml-cpp#1126
1 parent cda3187 commit 2bd0510

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/ml/explain_data_frame_analytics.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@
126126
source: { index: "index-source" }
127127
analysis: { outlier_detection: {} }
128128
- match:
129-
memory_estimation.expected_memory_without_disk: / \dkb /
129+
memory_estimation.expected_memory_without_disk: / \d[km]b /
130130
- match:
131-
memory_estimation.expected_memory_with_disk: / \dkb /
131+
memory_estimation.expected_memory_with_disk: / \d[km]b /
132132
- length: { field_selection: 2 }
133133
- match: { field_selection.0.name: "x" }
134134
- match: { field_selection.0.mapping_types: ["float"] }
@@ -156,9 +156,9 @@
156156
source: { index: "index-source" }
157157
analysis: { outlier_detection: {} }
158158
- match:
159-
memory_estimation.expected_memory_without_disk: / \dkb /
159+
memory_estimation.expected_memory_without_disk: / \d[km]b /
160160
- match:
161-
memory_estimation.expected_memory_with_disk: / \dkb /
161+
memory_estimation.expected_memory_with_disk: / \d[km]b /
162162

163163
- do:
164164
index:
@@ -173,9 +173,9 @@
173173
source: { index: "index-source" }
174174
analysis: { outlier_detection: {} }
175175
- match:
176-
memory_estimation.expected_memory_without_disk: / \dkb /
176+
memory_estimation.expected_memory_without_disk: / \d[km]b /
177177
- match:
178-
memory_estimation.expected_memory_with_disk: / \dkb /
178+
memory_estimation.expected_memory_with_disk: / \d[km]b /
179179

180180
---
181181
"Test field_selection given body":

0 commit comments

Comments
 (0)