2014-01-31 05:49:41 -05:00
|
|
|
---
|
|
|
|
"Test cat count help":
|
|
|
|
- do:
|
|
|
|
cat.count:
|
|
|
|
help: true
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-01-31 05:49:41 -05:00
|
|
|
/^ epoch .+ \n
|
|
|
|
timestamp .+ \n
|
|
|
|
count .+ \n $/
|
|
|
|
|
|
|
|
---
|
|
|
|
"Test cat count output":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.count: {}
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-10 10:07:54 -05:00
|
|
|
/# epoch timestamp count
|
2014-07-30 01:20:11 -04:00
|
|
|
^ \d+ \s \d{2}:\d{2}:\d{2} \s 0 \s+ \n $/
|
2014-01-31 05:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: index1
|
|
|
|
type: type1
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
refresh: true
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.count: {}
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-10 10:07:54 -05:00
|
|
|
/# epoch timestamp count
|
2014-07-30 01:20:11 -04:00
|
|
|
^ \d+ \s \d{2}:\d{2}:\d{2} \s 1 \s+ \n $/
|
2014-01-31 05:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: index2
|
|
|
|
type: type2
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
refresh: true
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.count:
|
|
|
|
h: count
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-10 10:07:54 -05:00
|
|
|
/# count
|
2014-07-30 01:20:11 -04:00
|
|
|
^ 2 \s+ \n $/
|
2014-01-31 05:49:41 -05:00
|
|
|
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.count:
|
|
|
|
index: index1
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-10 10:07:54 -05:00
|
|
|
/# epoch timestamp count
|
2014-07-30 01:20:11 -04:00
|
|
|
^ \d+ \s \d{2}:\d{2}:\d{2} \s 1 \s+ \n $/
|
2014-01-31 05:49:41 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.count:
|
|
|
|
index: index2
|
|
|
|
v: true
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-01-31 05:49:41 -05:00
|
|
|
/^ epoch \s+ timestamp \s+ count \s+ \n
|
|
|
|
\d+ \s+ \d{2}:\d{2}:\d{2} \s+ \d+ \s+ \n $/
|
|
|
|
|