---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Cluster HTTP Info:
- requires:
    cluster_features:
    - "gte_v8.9.0"
    reason: "/_info/script only available from v8.9"
- do:
    cluster.info:
      target:
      - "script"
    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: "script"
- gte:
    script.compilations: 0
- gte:
    script.cache_evictions: 0
- gte:
    script.compilation_limit_triggered: 0
