2014-02-07 11:36:01 -05:00
|
|
|
---
|
|
|
|
setup:
|
|
|
|
- skip:
|
|
|
|
features: regex
|
|
|
|
|
|
|
|
---
|
|
|
|
"Help":
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
help: true
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^ shards .+ \n
|
|
|
|
disk.used .+ \n
|
|
|
|
disk.avail .+ \n
|
|
|
|
disk.total .+ \n
|
|
|
|
disk.percent .+ \n
|
|
|
|
host .+ \n
|
|
|
|
ip .+ \n
|
|
|
|
node .+ \n
|
|
|
|
$/
|
|
|
|
|
|
|
|
---
|
|
|
|
"Empty cluster":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation: {}
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
( 0 \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
2014-02-07 11:36:01 -05:00
|
|
|
\d+ \s+
|
|
|
|
[-\w.]+ \s+
|
|
|
|
\d+(\.\d+){3} \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)+
|
|
|
|
$/
|
|
|
|
|
|
|
|
---
|
|
|
|
"One index":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
|
|
|
timeout: 1s
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation: {}
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
( [1-5] \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
2014-02-07 11:36:01 -05:00
|
|
|
\d+ \s+
|
|
|
|
[-\w.]+ \s+
|
|
|
|
\d+(\.\d+){3} \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)+
|
2014-02-07 11:44:41 -05:00
|
|
|
(
|
|
|
|
\d+ \s+
|
|
|
|
UNASSIGNED \s+
|
|
|
|
\n
|
|
|
|
)?
|
2014-02-07 11:36:01 -05:00
|
|
|
$/
|
|
|
|
|
|
|
|
---
|
|
|
|
"Node ID":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
node_id: _master
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
( 0 \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
2014-02-07 11:36:01 -05:00
|
|
|
\d+ \s+
|
|
|
|
[-\w.]+ \s+
|
|
|
|
\d+(\.\d+){3} \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)
|
|
|
|
$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
node_id: non_existent
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
$/
|
|
|
|
|
|
|
|
---
|
|
|
|
"Column headers":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
v: true
|
|
|
|
- match:
|
|
|
|
|
|
|
|
$body: >
|
|
|
|
/^ shards \s+
|
|
|
|
disk.used \s+
|
|
|
|
disk.avail \s+
|
|
|
|
disk.total \s+
|
|
|
|
disk.percent \s+
|
|
|
|
host \s+
|
|
|
|
ip \s+
|
|
|
|
node \s+
|
|
|
|
\n
|
|
|
|
|
|
|
|
( \s+0 \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
|
|
|
\d+(\.\d+)?[kmgt]b \s+
|
2014-02-07 11:36:01 -05:00
|
|
|
\d+ \s+
|
|
|
|
[-\w.]+ \s+
|
|
|
|
\d+(\.\d+){3} \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 12:26:30 -05:00
|
|
|
)+
|
2014-02-07 11:36:01 -05:00
|
|
|
$/
|
|
|
|
|
|
|
|
---
|
|
|
|
"Select columns":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
h: [disk.percent, node]
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
( \d+ \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)+
|
|
|
|
$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
h: [disk.percent, node]
|
|
|
|
v: true
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
disk.percent \s+
|
|
|
|
node \s+
|
|
|
|
\n
|
|
|
|
(
|
|
|
|
\s+\d+ \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)+
|
|
|
|
$/
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
"Bytes":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.allocation:
|
|
|
|
bytes: g
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: >
|
|
|
|
/^
|
|
|
|
( 0 \s+
|
|
|
|
\d+ \s+
|
|
|
|
\d+ \s+
|
|
|
|
\d+ \s+
|
|
|
|
\d+ \s+
|
|
|
|
[-\w.]+ \s+
|
|
|
|
\d+(\.\d+){3} \s+
|
2014-02-09 08:19:51 -05:00
|
|
|
\w.*
|
2014-02-07 12:22:07 -05:00
|
|
|
\n
|
2014-02-07 11:36:01 -05:00
|
|
|
)+
|
|
|
|
$/
|
|
|
|
|