|
@@ -9,15 +9,23 @@ For example:
|
|
|
GET /_cat/nodeattrs?v
|
|
|
--------------------------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[s/\?v/\?v&s=node,attr/]
|
|
|
+// Sort the resulting attributes so we can assert on them more easilly
|
|
|
|
|
|
Could look like:
|
|
|
|
|
|
[source,txt]
|
|
|
--------------------------------------------------
|
|
|
node host ip attr value
|
|
|
-EK_AsJb 127.0.0.1 127.0.0.1 testattr test
|
|
|
+...
|
|
|
+node-0 127.0.0.1 127.0.0.1 testattr test
|
|
|
+...
|
|
|
--------------------------------------------------
|
|
|
-// TESTRESPONSE[s/EK_AsJb/.+/ _cat]
|
|
|
+// TESTRESPONSE[s/\.\.\.\n$/\n(.+ xpack\\.installed true\n)?\n/]
|
|
|
+// TESTRESPONSE[s/\.\.\.\n/(.+ ml\\..+\n)*/ _cat]
|
|
|
+// If xpack is not installed then neither ... with match anything
|
|
|
+// If xpack is installed then the first ... contains ml attributes
|
|
|
+// and the second contains xpack.installed=true
|
|
|
|
|
|
The first few columns (`node`, `host`, `ip`) give you basic info per node
|
|
|
and the `attr` and `value` columns give you the custom node attributes,
|
|
@@ -46,15 +54,24 @@ mode (`v`). The header name will match the supplied value (e.g.,
|
|
|
GET /_cat/nodeattrs?v&h=name,pid,attr,value
|
|
|
--------------------------------------------------
|
|
|
// CONSOLE
|
|
|
+// TEST[s/,value/,value&s=node,attr/]
|
|
|
+// Sort the resulting attributes so we can assert on them more easilly
|
|
|
|
|
|
Might look like:
|
|
|
|
|
|
[source,txt]
|
|
|
--------------------------------------------------
|
|
|
name pid attr value
|
|
|
-EK_AsJb 19566 testattr test
|
|
|
+...
|
|
|
+node-0 19566 testattr test
|
|
|
+...
|
|
|
--------------------------------------------------
|
|
|
-// TESTRESPONSE[s/EK_AsJb/.+/ s/19566/\\d*/ _cat]
|
|
|
+// TESTRESPONSE[s/19566/\\d*/]
|
|
|
+// TESTRESPONSE[s/\.\.\.\n$/\n(.+ xpack\\.installed true\n)?\n/]
|
|
|
+// TESTRESPONSE[s/\.\.\.\n/(.+ ml\\..+\n)*/ _cat]
|
|
|
+// If xpack is not installed then neither ... with match anything
|
|
|
+// If xpack is installed then the first ... contains ml attributes
|
|
|
+// and the second contains xpack.installed=true
|
|
|
|
|
|
[cols="<,<,<,<,<",options="header",subs="normal"]
|
|
|
|=======================================================================
|