Relax assertions on memory_estimation.* fields (#52452) (#52458)

This commit is contained in:
Przemysław Witek 2020-02-18 11:57:03 +01:00 committed by GitHub
parent 4fb399396c
commit 6fa067a2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -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":