diff options
Diffstat (limited to 'rest-api-spec/test/cat.thread_pool')
-rw-r--r-- | rest-api-spec/test/cat.thread_pool/10_basic.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/rest-api-spec/test/cat.thread_pool/10_basic.yaml b/rest-api-spec/test/cat.thread_pool/10_basic.yaml new file mode 100644 index 0000000..af59d28 --- /dev/null +++ b/rest-api-spec/test/cat.thread_pool/10_basic.yaml @@ -0,0 +1,40 @@ +--- +"Test cat thread_pool output": + + - do: + cat.thread_pool: {} + + - match: + $body: > + / #host ip bulk.active bulk.queue bulk.rejected index.active index.queue index.rejected search.active search.queue search.rejected + ^ (\S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \n)+ $/ + + - do: + cat.thread_pool: + v: true + + - match: + $body: > + /^ host \s+ ip \s+ bulk.active \s+ bulk.queue \s+ bulk.rejected \s+ index.active \s+ index.queue \s+ index.rejected \s+ search.active \s+ search.queue \s+ search.rejected \s+ \n + (\S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \n)+ $/ + + - do: + cat.thread_pool: + h: pid,id,h,i,po + + - match: + $body: > + / #pid id host ip port + ^ (\d+ \s+ \S{4} \s+ \S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ \d{4} \n)+ $/ + + - do: + cat.thread_pool: + h: id,ba,fa,gea,ga,ia,maa,ma,oa,pa + v: true + full_id: true + + - match: + $body: > + /^ id \s+ ba \s+ fa \s+ gea \s+ ga \s+ ia \s+ maa \s+ ma \s+ oa \s+ pa \s+ \n + (\S+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \d+ \s+ \n)+ $/ + |