[TEST] Fixed pathological regex in cat.recovery

Fixes #6070
This commit is contained in:
Clinton Gormley 2014-05-08 14:15:47 +02:00
parent d7c05e5924
commit eb6d3e3eb3
1 changed files with 18 additions and 10 deletions

View File

@ -20,15 +20,23 @@
wait_for_status: yellow wait_for_status: yellow
- do: - do:
cat.recovery: {} cat.recovery: {}
- match: - match:
$body: | $body: |
/(?m)^(index1 \s+ \d+ \s+ \d+ \s+ /^
(gateway|replica|snapshot|relocating) \s+ ( index1 \s+
(init|index|start|translog|finalize|done) \s+ \d \s+ # shard
([-\w/.])+ \s+ \d+ \s+ # time
([-\w/.])+ \s+ (gateway|replica|snapshot|relocating) \s+ # type
([-\w/.])+ \s+ (init|index|start|translog|finalize|done) \s+ # stage
([-\w/.])+ \s+ [-\w./]+ \s+ # source_host
\d+ \s+ \d+\.\d+\% \s+ [-\w./]+ \s+ # target_host
\d+ \s+ \d+\.\d+\% \s*)${1,}/ [-\w./]+ \s+ # repository
[-\w./]+ \s+ # snapshot
\d+ \s+ # files
\d\.\d+% \s+ # files_percent
\d+ \s+ # bytes
\d\.\d+% \s+ # bytes_percent
\n
)+
$/