[TESTS] for the REST cluster stats test, if free or used (#20434)
memory are much less than the total memory, the percentage returned could be 0%. The yaml tests check that the free/used percentage are valid values by asserting `is_true`, but it turns out that `is_true` returns false if the value is assigned but it is 0 or even the string "0". This commit changes the assertion in the yaml test to ensure the value is greater than or equal to 0 instead.
This commit is contained in:
parent
3c10f90b47
commit
494ad0d572
|
@ -22,8 +22,8 @@
|
||||||
- is_true: nodes.os.mem.total_in_bytes
|
- is_true: nodes.os.mem.total_in_bytes
|
||||||
- is_true: nodes.os.mem.free_in_bytes
|
- is_true: nodes.os.mem.free_in_bytes
|
||||||
- is_true: nodes.os.mem.used_in_bytes
|
- is_true: nodes.os.mem.used_in_bytes
|
||||||
- is_true: nodes.os.mem.free_percent
|
- gte: { nodes.os.mem.free_percent: 0 }
|
||||||
- is_true: nodes.os.mem.used_percent
|
- gte: { nodes.os.mem.used_percent: 0 }
|
||||||
- is_true: nodes.process
|
- is_true: nodes.process
|
||||||
- is_true: nodes.jvm
|
- is_true: nodes.jvm
|
||||||
- is_true: nodes.fs
|
- is_true: nodes.fs
|
||||||
|
|
Loading…
Reference in New Issue