mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
The build_flavor was previously removed since it is no longer relevant; only the default distribution now exists. However, the removal of build flavor included removing it from the version information on the info response for the root path. This API is supposed to be stable, so removing that key was a compatibility break. This commit adds the build_flavor back to that API, hardcoded to `default`. Additionally, a test is added to ensure the key exists going forward, until it can be properly deprecated. closes #88318
57 lines
2.3 KiB
Text
57 lines
2.3 KiB
Text
==== Check that Elasticsearch is running
|
|
|
|
You can test that your {es} node is running by sending an HTTPS request to port
|
|
`9200` on `localhost`:
|
|
|
|
["source","sh",subs="attributes"]
|
|
----
|
|
curl --cacert {es-conf}{slash}certs{slash}http_ca.crt -u elastic https://localhost:9200 <1>
|
|
----
|
|
// NOTCONSOLE
|
|
<1> Ensure that you use `https` in your call, or the request will fail.
|
|
+
|
|
`--cacert`::
|
|
Path to the generated `http_ca.crt` certificate for the HTTP layer.
|
|
|
|
Enter the password for the `elastic` user that was generated during
|
|
installation, which should return a response like this:
|
|
|
|
////
|
|
The following hidden request is required before the response. Otherwise, you'll
|
|
get an error because there's a response with no request preceding it.
|
|
|
|
[source,console]
|
|
----
|
|
GET /
|
|
----
|
|
////
|
|
|
|
["source","js",subs="attributes,callouts"]
|
|
--------------------------------------------
|
|
{
|
|
"name" : "Cp8oag6",
|
|
"cluster_name" : "elasticsearch",
|
|
"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",
|
|
"version" : {
|
|
"number" : "{version_qualified}",
|
|
"build_type" : "{build_type}",
|
|
"build_hash" : "f27399d",
|
|
"build_flavor" : "default",
|
|
"build_date" : "2016-03-30T09:51:41.449Z",
|
|
"build_snapshot" : false,
|
|
"lucene_version" : "{lucene_version}",
|
|
"minimum_wire_compatibility_version" : "1.2.3",
|
|
"minimum_index_compatibility_version" : "1.2.3"
|
|
},
|
|
"tagline" : "You Know, for Search"
|
|
}
|
|
--------------------------------------------
|
|
// TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/]
|
|
// TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/]
|
|
// TESTRESPONSE[s/"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",/"cluster_uuid" : "$body.cluster_uuid",/]
|
|
// 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,/]
|
|
// 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/]
|
|
// So much s/// but at least we test that the layout is close to matching....
|