elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.22k stars 24.85k forks source link

REST tests to simulate Kibana interaction with ES + XPack #29727

Open elasticmachine opened 7 years ago

elasticmachine commented 7 years ago

Original comment by @jaymode:

This issue is to track adding REST tests around how Kibana interacts with elasticsearch and xpack. This will help prevent issues such as LINK REDACTED in the future. This will be tricky to keep in sync with changes in Kibana but it leads to a better experience if we can catch these problems earlier.

cc @uboness @lukasolson

elasticmachine commented 7 years ago

Original comment by @lukasolson:

Here are the different calls for index pattern management:

POST /_mget
{"docs":[{"_index":".kibana","_type":"config","_id":"4.5.0"}]}

POST /.kibana/index-pattern/_search
{"query":{"match_all":{}},"size":10000}

GET /.kibana/_mapping/*/field/_source

GET /logstash-*/_mapping/field/*

POST /.kibana/index-pattern/logstash-*
{"title":"logstash-*","timeFieldName":"utc_time"}

POST /.kibana/_refresh

POST /_mget
{"docs":[{"_index":".kibana","_type":"index-pattern","_id":"logstash-*"}]}

POST /.kibana/config/4.5.0/_update
{"doc":{"buildNum":9889,"defaultIndex":"logstash-*"}}