---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Help:
- do:
    cat.nodeattrs:
      help: true
    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"
- match:
    $body: "/^  node   .+ \\n\n    id     .+ \\n\n    pid    .+ \\n\n    host   .+\
      \ \\n\n    ip     .+ \\n\n    port   .+ \\n\n    attr   .+ \\n\n    value  .+\
      \ \\n\n$/\n"
---
Test cat nodes attrs output:
- do:
    cat.nodeattrs: {}
    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"
- match:
    $body: "/^#  node\\s+         host\\s+ ip\\s+                   attr\\s+     value\\\
      s* \\n\n     (((\\S+\\s?){1,10})\\s+(\\S+)\\s+[0-9a-f:.%]+\\s+(\\S+)\\s+   \
      \ (\\S+)\\s* \\n)+\n$/\n"
- match:
    $body: "/#   node\\s+              host\\s+  ip\\s+                   attr\\s+\
      \     value\\s* \\n\n     (\\S+(\\s\\S+){0,7})\\s+ (\\S+)\\s+ [0-9a-f:.%]+\\\
      s+testattr\\s+ test \\s* \\n\n/\n"
- do:
    cat.nodeattrs:
      v: true
    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"
- match:
    $body: "/^   node\\s+        host\\s+ ip\\s+                   attr\\s+     value\\\
      s* \\n\n     (((\\S+\\s?){1,10})\\s+(\\S+)\\s+[0-9a-f:.%]+\\s+(\\S+)\\s+   \
      \ (\\S+)\\s* \\n)+\n$/\n"
- match:
    $body: "/#   node\\s+              host\\s+  ip\\s+                    attr\\\
      s+     value\\s* \\n\n     (\\S+(\\s\\S+){0,7})\\s+ (\\S+)\\s+ [0-9a-f:.%]+\\\
      s+ testattr\\s+ test \\s* \\n\n/\n"
- do:
    cat.nodeattrs:
      h: "attr,value"
      v: true
    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"
- match:
    $body: "/^   attr\\s+     value\\s*\\n\n     ((\\S+)\\s+   (\\S+)\\s*)+\n$/\n"
- match:
    $body: "/#   attr\\s+     value\\s*\\n\n     testattr\\s+ test\\s*\\n\n/\n"
