2016-04-03 10:09:24 -04:00
|
|
|
==== Checking that Elasticsearch is running
|
|
|
|
|
|
|
|
You can test that your Elasticsearch node is running by sending an HTTP
|
2016-04-04 12:03:13 -04:00
|
|
|
request to port `9200` on `localhost`:
|
2016-04-03 10:09:24 -04:00
|
|
|
|
2016-08-29 17:33:25 -04:00
|
|
|
[source,js]
|
2016-04-03 10:09:24 -04:00
|
|
|
--------------------------------------------
|
2016-08-29 17:33:25 -04:00
|
|
|
GET /
|
2016-04-03 10:09:24 -04:00
|
|
|
--------------------------------------------
|
2016-08-29 17:33:25 -04:00
|
|
|
// CONSOLE
|
2016-04-03 10:09:24 -04:00
|
|
|
|
|
|
|
which should give you a response something like this:
|
|
|
|
|
2016-08-29 17:33:25 -04:00
|
|
|
["source","js",subs="attributes,callouts"]
|
2016-04-03 10:09:24 -04:00
|
|
|
--------------------------------------------
|
|
|
|
{
|
2016-08-29 17:33:25 -04:00
|
|
|
"name" : "Cp8oag6",
|
2016-04-03 10:09:24 -04:00
|
|
|
"cluster_name" : "elasticsearch",
|
2016-09-15 10:25:17 -04:00
|
|
|
"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",
|
2016-04-03 10:09:24 -04:00
|
|
|
"version" : {
|
2016-08-29 17:33:25 -04:00
|
|
|
"number" : "{version}",
|
2018-06-18 12:06:42 -04:00
|
|
|
"build_flavor" : "{build_flavor}",
|
2018-04-11 22:37:59 -04:00
|
|
|
"build_type" : "zip",
|
2016-04-03 10:09:24 -04:00
|
|
|
"build_hash" : "f27399d",
|
|
|
|
"build_date" : "2016-03-30T09:51:41.449Z",
|
|
|
|
"build_snapshot" : false,
|
2018-11-07 07:01:05 -05:00
|
|
|
"build_version" : "{qualified_version}",
|
2017-07-20 16:01:41 -04:00
|
|
|
"lucene_version" : "{lucene_version}",
|
|
|
|
"minimum_wire_compatibility_version" : "1.2.3",
|
|
|
|
"minimum_index_compatibility_version" : "1.2.3"
|
2016-04-03 10:09:24 -04:00
|
|
|
},
|
|
|
|
"tagline" : "You Know, for Search"
|
|
|
|
}
|
|
|
|
--------------------------------------------
|
2016-08-29 17:33:25 -04:00
|
|
|
// TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/]
|
|
|
|
// TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/]
|
2016-09-15 10:25:17 -04:00
|
|
|
// TESTRESPONSE[s/"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",/"cluster_uuid" : "$body.cluster_uuid",/]
|
2016-08-29 17:33:25 -04:00
|
|
|
// TESTRESPONSE[s/"build_hash" : "f27399d",/"build_hash" : "$body.version.build_hash",/]
|
|
|
|
// TESTRESPONSE[s/"build_date" : "2016-03-30T09:51:41.449Z",/"build_date" : $body.version.build_date,/]
|
|
|
|
// TESTRESPONSE[s/"build_snapshot" : false,/"build_snapshot" : $body.version.build_snapshot,/]
|
2017-07-20 16:01:41 -04:00
|
|
|
// TESTRESPONSE[s/"minimum_wire_compatibility_version" : "1.2.3"/"minimum_wire_compatibility_version" : $body.version.minimum_wire_compatibility_version/]
|
|
|
|
// TESTRESPONSE[s/"minimum_index_compatibility_version" : "1.2.3"/"minimum_index_compatibility_version" : $body.version.minimum_index_compatibility_version/]
|
2016-08-29 17:33:25 -04:00
|
|
|
// So much s/// but at least we test that the layout is close to matching....
|