Skip to content

Commit 6fa067a

Browse files
authored
Relax assertions on memory_estimation.* fields (elastic#52452) (elastic#52458)
1 parent 4fb3993 commit 6fa067a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@
125125
body:
126126
source: { index: "index-source" }
127127
analysis: { outlier_detection: {} }
128-
- match: { memory_estimation.expected_memory_without_disk: "3kb" }
129-
- match: { memory_estimation.expected_memory_with_disk: "3kb" }
128+
- match:
129+
memory_estimation.expected_memory_without_disk: / \dkb /
130+
- match:
131+
memory_estimation.expected_memory_with_disk: / \dkb /
130132
- length: { field_selection: 2 }
131133
- match: { field_selection.0.name: "x" }
132134
- match: { field_selection.0.mapping_types: ["float"] }
@@ -153,8 +155,10 @@
153155
body:
154156
source: { index: "index-source" }
155157
analysis: { outlier_detection: {} }
156-
- match: { memory_estimation.expected_memory_without_disk: "4kb" }
157-
- match: { memory_estimation.expected_memory_with_disk: "4kb" }
158+
- match:
159+
memory_estimation.expected_memory_without_disk: / \dkb /
160+
- match:
161+
memory_estimation.expected_memory_with_disk: / \dkb /
158162

159163
- do:
160164
index:
@@ -168,8 +172,10 @@
168172
body:
169173
source: { index: "index-source" }
170174
analysis: { outlier_detection: {} }
171-
- match: { memory_estimation.expected_memory_without_disk: "6kb" }
172-
- match: { memory_estimation.expected_memory_with_disk: "5kb" }
175+
- match:
176+
memory_estimation.expected_memory_without_disk: / \dkb /
177+
- match:
178+
memory_estimation.expected_memory_with_disk: / \dkb /
173179

174180
---
175181
"Test field_selection given body":

0 commit comments

Comments
 (0)