---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
X-Pack loaded:
- skip:
    reason: "contains is a newly added assertion"
    features: "contains"
- do:
    cluster.state: {}
    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"
- set:
    master_node: "master"
- do:
    nodes.info: {}
    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"
- contains:
    nodes.$master.modules:
      name: "x-pack-ccr"
- contains:
    nodes.$master.modules:
      name: "x-pack-core"
- contains:
    nodes.$master.modules:
      name: "x-pack-deprecation"
- contains:
    nodes.$master.modules:
      name: "x-pack-enrich"
- contains:
    nodes.$master.modules:
      name: "x-pack-graph"
- contains:
    nodes.$master.modules:
      name: "x-pack-ilm"
- contains:
    nodes.$master.modules:
      name: "x-pack-logstash"
- contains:
    nodes.$master.modules:
      name: "x-pack-ml"
- contains:
    nodes.$master.modules:
      name: "x-pack-monitoring"
- contains:
    nodes.$master.modules:
      name: "x-pack-rollup"
- contains:
    nodes.$master.modules:
      name: "x-pack-security"
- contains:
    nodes.$master.modules:
      name: "x-pack-sql"
- contains:
    nodes.$master.modules:
      name: "x-pack-watcher"
