Tests: Fixed indices.stats types test when run with replicas

This commit is contained in:
Clinton Gormley 2014-06-10 19:10:18 +02:00
parent bb15def36e
commit eb3e0fb931
1 changed files with 16 additions and 16 deletions

View File

@ -21,62 +21,62 @@
- do:
indices.stats: {}
- match: { _all.total.indexing.index_total: 2 }
- is_false: _all.total.indexing.types
- match: { _all.primaries.indexing.index_total: 2 }
- is_false: _all.primaries.indexing.types
---
"Types - one":
- do:
indices.stats: { types: bar }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- is_false: _all.total.indexing.types.baz
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- is_false: _all.primaries.indexing.types.baz
---
"Types - multi":
- do:
indices.stats: { types: "bar,baz" }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- match: { _all.total.indexing.types.baz.index_total: 1 }
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- match: { _all.primaries.indexing.types.baz.index_total: 1 }
---
"Types - star":
- do:
indices.stats: { types: "*" }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- match: { _all.total.indexing.types.baz.index_total: 1 }
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- match: { _all.primaries.indexing.types.baz.index_total: 1 }
---
"Types - pattern":
- do:
indices.stats: { types: "*r" }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- is_false: _all.total.indexing.types.baz
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- is_false: _all.primaries.indexing.types.baz
---
"Types - _all metric":
- do:
indices.stats: { types: bar, metric: _all }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- is_false: _all.total.indexing.types.baz
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- is_false: _all.primaries.indexing.types.baz
---
"Types - indexing metric":
- do:
indices.stats: { types: bar, metric: indexing }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- is_false: _all.total.indexing.types.baz
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- is_false: _all.primaries.indexing.types.baz
---
"Types - multi metric":
- do:
indices.stats: { types: bar, metric: [ indexing, search ] }
- match: { _all.total.indexing.types.bar.index_total: 1 }
- is_false: _all.total.indexing.types.baz
- match: { _all.primaries.indexing.types.bar.index_total: 1 }
- is_false: _all.primaries.indexing.types.baz