Skip to content

Commit

Permalink
Relax assertions on memory_estimation.* fields (elastic#52452) (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek authored Feb 18, 2020
1 parent 4fb3993 commit 6fa067a
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand All @@ -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:
Expand All @@ -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":
Expand Down

0 comments on commit 6fa067a

Please sign in to comment.