2014-02-18 17:28:49 -05:00
|
|
|
---
|
|
|
|
"Test cat recovery output":
|
|
|
|
|
|
|
|
- do:
|
2014-12-12 08:51:20 -05:00
|
|
|
cat.recovery:
|
|
|
|
v: false
|
2014-02-18 17:28:49 -05:00
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-18 17:28:49 -05:00
|
|
|
/^$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: index1
|
|
|
|
type: type1
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
refresh: true
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
- do:
|
2014-12-12 08:51:20 -05:00
|
|
|
cat.recovery:
|
|
|
|
v: false
|
2014-05-08 08:15:47 -04:00
|
|
|
|
2014-02-18 17:28:49 -05:00
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-05-08 08:15:47 -04:00
|
|
|
/^
|
2014-05-29 10:57:09 -04:00
|
|
|
(
|
2014-05-13 05:02:05 -04:00
|
|
|
index1 \s+
|
2014-05-08 08:15:47 -04:00
|
|
|
\d \s+ # shard
|
|
|
|
\d+ \s+ # time
|
|
|
|
(gateway|replica|snapshot|relocating) \s+ # type
|
|
|
|
(init|index|start|translog|finalize|done) \s+ # stage
|
|
|
|
[-\w./]+ \s+ # source_host
|
|
|
|
[-\w./]+ \s+ # target_host
|
|
|
|
[-\w./]+ \s+ # repository
|
|
|
|
[-\w./]+ \s+ # snapshot
|
|
|
|
\d+ \s+ # files
|
2014-05-29 10:57:09 -04:00
|
|
|
\d+\.\d+% \s+ # files_percent
|
2014-05-08 08:15:47 -04:00
|
|
|
\d+ \s+ # bytes
|
2014-05-29 10:57:09 -04:00
|
|
|
\d+\.\d+% \s+ # bytes_percent
|
2014-05-08 08:15:47 -04:00
|
|
|
\n
|
2014-05-13 05:02:05 -04:00
|
|
|
)+
|
2014-05-08 08:15:47 -04:00
|
|
|
$/
|