1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
---
"Test cat count help":
- do:
cat.count:
help: true
- match:
$body: >
/^ epoch .+ \n
timestamp .+ \n
count .+ \n $/
---
"Test cat count output":
- do:
cat.count: {}
- match:
$body: >
/# epoch timestamp count
^ \d+ \s \d{2}:\d{2}:\d{2} \s 0 \s $/
- do:
index:
index: index1
type: type1
id: 1
body: { foo: bar }
refresh: true
- do:
cat.count: {}
- match:
$body: >
/# epoch timestamp count
^ \d+ \s \d{2}:\d{2}:\d{2} \s 1 \s $/
- do:
index:
index: index2
type: type2
id: 1
body: { foo: bar }
refresh: true
- do:
cat.count:
h: count
- match:
$body: >
/# count
^ 2 \s $/
- do:
cat.count:
index: index1
- match:
$body: >
/# epoch timestamp count
^ \d+ \s \d{2}:\d{2}:\d{2} \s 1 \s $/
- do:
cat.count:
index: index2
v: true
- match:
$body: >
/^ epoch \s+ timestamp \s+ count \s+ \n
\d+ \s+ \d{2}:\d{2}:\d{2} \s+ \d+ \s+ \n $/
|