2014-02-09 13:19:03 -05:00
|
|
|
---
|
|
|
|
"Test cat shards output":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.shards: {}
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^$/
|
|
|
|
|
|
|
|
- do:
|
2014-03-10 08:48:17 -04:00
|
|
|
indices.create:
|
|
|
|
index: index1
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_shards: "5"
|
|
|
|
number_of_replicas: "1"
|
2014-02-09 13:19:03 -05:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
- do:
|
|
|
|
cat.shards: {}
|
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index1 \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){10}$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: index2
|
|
|
|
body:
|
|
|
|
settings:
|
2014-03-10 08:48:17 -04:00
|
|
|
number_of_shards: "5"
|
2014-02-09 13:19:03 -05:00
|
|
|
number_of_replicas: "0"
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.shards: {}
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index(1|2) \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){15}$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.shards:
|
|
|
|
index: index2
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index2 \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){5}$/
|