---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
- do:
    index:
      index: "test1"
      id: "1"
      body:
        foo: "bar"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    index:
      index: "test2"
      id: "1"
      body:
        foo: "baz"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
---
Metric - blank:
- do:
    indices.stats: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "_all.total.docs"
- is_true: "_all.total.store"
- is_true: "_all.total.indexing"
- is_true: "_all.total.get"
- is_true: "_all.total.search"
- is_true: "_all.total.merges"
- is_true: "_all.total.refresh"
- is_true: "_all.total.flush"
- is_true: "_all.total.warmer"
- is_true: "_all.total.query_cache"
- is_true: "_all.total.fielddata"
- is_true: "_all.total.completion"
- is_true: "_all.total.segments"
- is_true: "_all.total.translog"
- is_true: "_all.total.recovery"
---
Metric - _all:
- do:
    indices.stats:
      metric: "_all"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "_all.total.docs"
- is_true: "_all.total.store"
- is_true: "_all.total.indexing"
- is_true: "_all.total.get"
- is_true: "_all.total.search"
- is_true: "_all.total.merges"
- is_true: "_all.total.refresh"
- is_true: "_all.total.flush"
- is_true: "_all.total.warmer"
- is_true: "_all.total.query_cache"
- is_true: "_all.total.fielddata"
- is_true: "_all.total.completion"
- is_true: "_all.total.segments"
- is_true: "_all.total.translog"
- is_true: "_all.total.recovery"
---
Metric - one:
- do:
    indices.stats:
      metric: "docs"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "_all.total.docs"
- is_false: "_all.total.store"
- is_false: "_all.total.indexing"
- is_false: "_all.total.get"
- is_false: "_all.total.search"
- is_false: "_all.total.merges"
- is_false: "_all.total.refresh"
- is_false: "_all.total.flush"
- is_false: "_all.total.warmer"
- is_false: "_all.total.query_cache"
- is_false: "_all.total.fielddata"
- is_false: "_all.total.completion"
- is_false: "_all.total.segments"
- is_false: "_all.total.translog"
- is_false: "_all.total.recovery"
---
Metric - multi:
- do:
    indices.stats:
      metric:
      - "store"
      - "get"
      - "merge"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "_all.total.docs"
- is_true: "_all.total.store"
- is_false: "_all.total.indexing"
- is_true: "_all.total.get"
- is_false: "_all.total.search"
- is_true: "_all.total.merges"
- is_false: "_all.total.refresh"
- is_false: "_all.total.flush"
- is_false: "_all.total.warmer"
- is_false: "_all.total.query_cache"
- is_false: "_all.total.fielddata"
- is_false: "_all.total.completion"
- is_false: "_all.total.segments"
- is_false: "_all.total.translog"
- is_false: "_all.total.recovery"
---
Metric - recovery:
- do:
    indices.stats:
      metric:
      - "recovery"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "_all.total.docs"
- is_false: "_all.total.store"
- is_false: "_all.total.indexing"
- is_false: "_all.total.get"
- is_false: "_all.total.search"
- is_false: "_all.total.merges"
- is_false: "_all.total.refresh"
- is_false: "_all.total.flush"
- is_false: "_all.total.warmer"
- is_false: "_all.total.query_cache"
- is_false: "_all.total.fielddata"
- is_false: "_all.total.completion"
- is_false: "_all.total.segments"
- is_false: "_all.total.translog"
- is_true: "_all.total.recovery"
---
Metric - _all include_segment_file_sizes:
- do:
    indices.stats:
      metric: "_all"
      include_segment_file_sizes: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "_all.total.docs"
- is_true: "_all.total.store"
- is_true: "_all.total.indexing"
- is_true: "_all.total.get"
- is_true: "_all.total.search"
- is_true: "_all.total.merges"
- is_true: "_all.total.refresh"
- is_true: "_all.total.flush"
- is_true: "_all.total.warmer"
- is_true: "_all.total.query_cache"
- is_true: "_all.total.fielddata"
- is_true: "_all.total.completion"
- is_true: "_all.total.segments"
- is_true: "_all.total.translog"
- is_true: "_all.total.recovery"
- is_true: "_all.total.segments.file_sizes"
---
Metric - segments include_segment_file_sizes:
- do:
    indices.stats:
      metric: "segments"
      include_segment_file_sizes: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "_all.total.docs"
- is_false: "_all.total.store"
- is_false: "_all.total.indexing"
- is_false: "_all.total.get"
- is_false: "_all.total.search"
- is_false: "_all.total.merges"
- is_false: "_all.total.refresh"
- is_false: "_all.total.flush"
- is_false: "_all.total.warmer"
- is_false: "_all.total.query_cache"
- is_false: "_all.total.fielddata"
- is_false: "_all.total.completion"
- is_true: "_all.total.segments"
- is_false: "_all.total.translog"
- is_false: "_all.total.recovery"
- is_true: "_all.total.segments.file_sizes"
---
Metric - _all include_unloaded_segments:
- do:
    indices.stats:
      metric: "_all"
      include_unloaded_segments: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "_all.total.docs"
- is_true: "_all.total.store"
- is_true: "_all.total.indexing"
- is_true: "_all.total.get"
- is_true: "_all.total.search"
- is_true: "_all.total.merges"
- is_true: "_all.total.refresh"
- is_true: "_all.total.flush"
- is_true: "_all.total.warmer"
- is_true: "_all.total.query_cache"
- is_true: "_all.total.fielddata"
- is_true: "_all.total.completion"
- is_true: "_all.total.segments"
- is_true: "_all.total.translog"
- is_true: "_all.total.recovery"
---
Metric - segments include_unloaded_segments:
- do:
    indices.stats:
      metric: "segments"
      include_unloaded_segments: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "_all.total.docs"
- is_false: "_all.total.store"
- is_false: "_all.total.indexing"
- is_false: "_all.total.get"
- is_false: "_all.total.search"
- is_false: "_all.total.merges"
- is_false: "_all.total.refresh"
- is_false: "_all.total.flush"
- is_false: "_all.total.warmer"
- is_false: "_all.total.query_cache"
- is_false: "_all.total.fielddata"
- is_false: "_all.total.completion"
- is_true: "_all.total.segments"
- is_false: "_all.total.translog"
- is_false: "_all.total.recovery"
