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
|
2015-02-10 02:54:03 -05:00
|
|
|
\d+ \s+ # total_files
|
|
|
|
\d+ \s+ # total_bytes
|
2015-03-07 10:50:32 -05:00
|
|
|
\d+ \s+ # translog
|
|
|
|
-?\d+\.\d+% \s+ # translog_percent
|
|
|
|
-?\d+ \s+ # total_translog
|
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
|
|
|
$/
|