From eb3e0fb9314af34c8eb5a8bd23bfc58c4f8d882f Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Tue, 10 Jun 2014 19:10:18 +0200 Subject: [PATCH] Tests: Fixed indices.stats types test when run with replicas --- .../test/indices.stats/15_types.yaml | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/rest-api-spec/test/indices.stats/15_types.yaml b/rest-api-spec/test/indices.stats/15_types.yaml index 205f3bd35c8..5504df434f8 100644 --- a/rest-api-spec/test/indices.stats/15_types.yaml +++ b/rest-api-spec/test/indices.stats/15_types.yaml @@ -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