Testing: Ensure cat API REST tests are unaffected by randomization
The wildcard cat API REST tests relied on bulk.max and bulk.min in the thread_pool response. However due to the thread pool types being randomized in InternalTestCluster, the min/max values were not guaranteed to exist (the cached thread pool type is unbounded and thus does not have a max value). In order to prevent this, the test has been removed and now the cat nodes test is used for wildcard testing, which always returns stats about the heap.
This commit is contained in:
parent
a4c88b7233
commit
38639074b4
|
@ -29,6 +29,16 @@
|
|||
/^ heap\.current \s+ heap\.percent \s+ heap\.max \s+ \n
|
||||
(\s+ \d+(\.\d+)?[ptgmk]?b \s+ \d+ \s+ \d+(\.\d+)?[ptgmk]?b \s+ \n)+ $/
|
||||
|
||||
- do:
|
||||
cat.nodes:
|
||||
h: heap.*
|
||||
v: true
|
||||
|
||||
- match:
|
||||
$body: |
|
||||
/^ heap\.current \s+ heap\.percent \s+ heap\.max \s+ \n
|
||||
(\s+ \d+(\.\d+)?[ptgmk]?b \s+ \d+ \s+ \d+(\.\d+)?[ptgmk]?b \s+ \n)+ $/
|
||||
|
||||
- do:
|
||||
cat.nodes:
|
||||
h: file_desc.current,file_desc.percent,file_desc.max
|
||||
|
|
|
@ -29,18 +29,6 @@
|
|||
/ #pid id host ip port
|
||||
^ (\d+ \s+ \S{4} \s+ \S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ (\d+|-) \s+ \n)+ $/
|
||||
|
||||
|
||||
- do:
|
||||
cat.thread_pool:
|
||||
h: bulk.m*
|
||||
|
||||
- match:
|
||||
$body: |
|
||||
/^ bulk.min \s+ bulk.max \s+ \n
|
||||
(\s+ \d+ \s+ \d+ \s+ \n)+ $/
|
||||
|
||||
#(\s+ \d+ \s+ \d+ \n)+ $/
|
||||
|
||||
- do:
|
||||
cat.thread_pool:
|
||||
h: id,ba,fa,gea,ga,ia,maa,ma,oa,pa
|
||||
|
|
Loading…
Reference in New Issue