---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Allocation stats:
- requires:
    cluster_features:
    - "stats.include_disk_thresholds"
    reason: "fs watermark stats was added in 8.15.0"
    test_runner_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:
      metric:
      - "fs"
    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"
- exists: "nodes.$node_id.fs"
- exists: "nodes.$node_id.fs.data"
- exists: "nodes.$node_id.fs.data.0.path"
- exists: "nodes.$node_id.fs.data.0.mount"
- exists: "nodes.$node_id.fs.data.0.type"
- exists: "nodes.$node_id.fs.data.0.total_in_bytes"
- exists: "nodes.$node_id.fs.data.0.free_in_bytes"
- exists: "nodes.$node_id.fs.data.0.available_in_bytes"
- exists: "nodes.$node_id.fs.data.0.low_watermark_free_space_in_bytes"
- exists: "nodes.$node_id.fs.data.0.high_watermark_free_space_in_bytes"
- exists: "nodes.$node_id.fs.data.0.flood_stage_free_space_in_bytes"
