---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Nodes Stats with response filtering:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    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"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.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: "cluster_name"
- is_true: "nodes"
- is_true: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- gte:
    nodes.$node_id.indices.docs.count: 0
- is_true: "nodes.$node_id.indices.segments"
- gte:
    nodes.$node_id.indices.segments.count: 0
- is_true: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.jvm.threads"
- gte:
    nodes.$node_id.jvm.threads.count: 0
- is_true: "nodes.$node_id.jvm.buffer_pools.direct"
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.count: 0
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.used_in_bytes: 0
- do:
    nodes.stats:
      filter_path: "cluster_name"
    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: "cluster_name"
- is_false: "nodes"
- is_false: "nodes.$node_id.name"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.jvm"
- do:
    nodes.stats:
      filter_path: "nodes.*"
    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: "cluster_name"
- is_true: "nodes"
- is_true: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- gte:
    nodes.$node_id.indices.docs.count: 0
- is_true: "nodes.$node_id.indices.segments"
- gte:
    nodes.$node_id.indices.segments.count: 0
- is_true: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.jvm.threads"
- gte:
    nodes.$node_id.jvm.threads.count: 0
- is_true: "nodes.$node_id.jvm.buffer_pools.direct"
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.count: 0
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.used_in_bytes: 0
- do:
    nodes.stats:
      filter_path: "nodes.*.indices"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- gte:
    nodes.$node_id.indices.docs.count: 0
- is_true: "nodes.$node_id.indices.segments"
- gte:
    nodes.$node_id.indices.segments.count: 0
- is_false: "nodes.$node_id.jvm"
- do:
    nodes.stats:
      filter_path:
      - "nodes.*.name"
      - "nodes.*.indices.docs.count"
    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: "cluster_name"
- is_true: "nodes"
- is_true: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- gte:
    nodes.$node_id.indices.docs.count: 0
- is_false: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.jvm"
- do:
    nodes.stats:
      filter_path: "nodes.**.count"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- gte:
    nodes.$node_id.indices.docs.count: 0
- is_true: "nodes.$node_id.indices.segments"
- gte:
    nodes.$node_id.indices.segments.count: 0
- is_true: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.jvm.threads"
- gte:
    nodes.$node_id.jvm.threads.count: 0
- is_true: "nodes.$node_id.jvm.buffer_pools.direct"
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.count: 0
- is_false: "nodes.$node_id.jvm.buffer_pools.direct.used_in_bytes"
- do:
    nodes.stats:
      filter_path: "nodes.**.jvm.**.count"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.indices.docs.count"
- is_false: "nodes.$node_id.indices.segments.count"
- is_true: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.jvm.threads"
- gte:
    nodes.$node_id.jvm.threads.count: 0
- is_true: "nodes.$node_id.jvm.buffer_pools.direct"
- gte:
    nodes.$node_id.jvm.buffer_pools.direct.count: 0
- is_false: "nodes.$node_id.jvm.buffer_pools.direct.used_in_bytes"
- do:
    nodes.stats:
      filter_path: "nodes.*.fs.data"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.fs.data"
- is_true: "nodes.$node_id.fs.data.0.path"
- is_true: "nodes.$node_id.fs.data.0.type"
- is_true: "nodes.$node_id.fs.data.0.total_in_bytes"
- do:
    nodes.stats:
      filter_path: "nodes.*.fs.data.t*"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.fs.data"
- is_false: "nodes.$node_id.fs.data.0.path"
- is_true: "nodes.$node_id.fs.data.0.type"
- is_true: "nodes.$node_id.fs.data.0.total_in_bytes"
---
Nodes Stats filtered using both includes and excludes filters:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    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"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      filter_path:
      - "nodes"
      - "-nodes.*.jvm"
      - "-nodes.*.indices"
    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: "cluster_name"
- is_true: "nodes"
- is_true: "nodes.$node_id.name"
- is_true: "nodes.$node_id.os"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.jvm"
- do:
    nodes.stats:
      filter_path: "nodes.*.indices,-nodes.*.indices.segments"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_true: "nodes.$node_id.indices"
- is_true: "nodes.$node_id.indices.docs"
- is_false: "nodes.$node_id.indices.segments"
- do:
    nodes.stats:
      filter_path: "nodes.*.fs.data.t*,-**.type"
    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: "cluster_name"
- is_true: "nodes"
- is_false: "nodes.$node_id.name"
- is_false: "nodes.$node_id.indices"
- is_false: "nodes.$node_id.jvm"
- is_true: "nodes.$node_id.fs.data"
- is_false: "nodes.$node_id.fs.data.0.type"
- is_true: "nodes.$node_id.fs.data.0.total_in_bytes"
