---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
cluster stats with voting only node stats:
- requires:
    cluster_features:
    - "gte_v7.3.0"
    reason: "voting only nodes are added in v7.3"
- do:
    cluster.stats: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - ".*rollup functionality will be removed in Elasticsearch.*"
    - "Index \\[\\.profiling-.*\\] name begins with a dot.* and will not be allowed\
      \ in a future Elasticsearch version."
    - "Parameter \\[default_metric\\] is deprecated and will be removed in a future\
      \ version"
- gte:
    nodes.count.total: 1
- gte:
    nodes.count.master: 1
- gte:
    nodes.count.data: 1
- gte:
    nodes.count.ingest: 0
- gte:
    nodes.count.coordinating_only: 0
- gte:
    nodes.count.voting_only: 0
