2014-02-18 17:28:49 -05:00
|
|
|
---
|
|
|
|
"Test cat recovery output":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.recovery: {}
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
cat.recovery: {}
|
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
|
|
|
/^
|
|
|
|
( index1 \s+
|
|
|
|
\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-08 09:40:28 -04:00
|
|
|
\d+\.\d+% \s+ # files_percent
|
2014-05-08 08:15:47 -04:00
|
|
|
\d+ \s+ # bytes
|
2014-05-08 09:40:28 -04:00
|
|
|
\d+\.\d+% \s+ # bytes_percent
|
2014-05-08 08:15:47 -04:00
|
|
|
\n
|
2014-05-12 09:43:20 -04:00
|
|
|
)++
|
2014-05-08 08:15:47 -04:00
|
|
|
$/
|