Skip to content

Commit c4cc68e

Browse files
authored
Relax assertions on memory_estimation.* fields (#52452)
1 parent 41909b8 commit c4cc68e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@
102102
---
103103
"Test non-empty data frame given body":
104104

105-
- skip:
106-
version: "all"
107-
reason: "AwaitsFix https://github.com/elastic/ml-cpp/pull/1003"
108-
109105
- do:
110106
indices.create:
111107
index: index-source
@@ -129,8 +125,10 @@
129125
body:
130126
source: { index: "index-source" }
131127
analysis: { outlier_detection: {} }
132-
- match: { memory_estimation.expected_memory_without_disk: "3kb" }
133-
- 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 /
134132
- length: { field_selection: 2 }
135133
- match: { field_selection.0.name: "x" }
136134
- match: { field_selection.0.mapping_types: ["float"] }
@@ -157,8 +155,10 @@
157155
body:
158156
source: { index: "index-source" }
159157
analysis: { outlier_detection: {} }
160-
- match: { memory_estimation.expected_memory_without_disk: "4kb" }
161-
- 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 /
162162

163163
- do:
164164
index:
@@ -172,8 +172,10 @@
172172
body:
173173
source: { index: "index-source" }
174174
analysis: { outlier_detection: {} }
175-
- match: { memory_estimation.expected_memory_without_disk: "6kb" }
176-
- 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 /
177179

178180
---
179181
"Test field_selection given body":

0 commit comments

Comments
 (0)