OpenSearch/rest-api-spec/test/cat.recovery/10_basic.yaml

46 lines
1.4 KiB
YAML
Raw Normal View History

---
"Test cat recovery output":
- do:
cat.recovery:
v: false
- match:
$body: |
/^$/
- do:
index:
index: index1
type: type1
id: 1
body: { foo: bar }
refresh: true
- do:
cluster.health:
wait_for_status: yellow
- do:
cat.recovery:
v: false
- match:
$body: |
/^
(
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
\d+\.\d+% \s+ # files_percent
\d+ \s+ # bytes
\d+\.\d+% \s+ # bytes_percent
\n
)+
$/