OpenSearch/client
Tianli Feng ab478ba5f3
Fix the support of RestClient Node Sniffer for version 2.x and update tests (#3487)
Fix the support of RestClient Node Sniffer for OpenSearch 2.x, and update unit tests for OpenSearch.
The current code contains the logic to be compatible with Elasticsearch 2.x version, which is conflict with OpenSearch 2.x, so removed that part of legacy code.

* Update the script create_test_nodes_info.bash to dump the response of Nodes Info API GET _nodes/http for OpenSearch 1.0 and 2.0 version, which used for unit test.
* Remove the support of Elasticsearch version 2.x for the Sniffer
* Update unit test to validate the Sniffer compatible with OpenSearch 1.x and 2.x
* Update the API response parser to meet the array notation (in ES 6.1 and above) for the node attributes setting. It will result the value of `node.attr` setting will not be parsed as array in the Sniffer, when using the Sniffer on cluster in Elasticsearch 6.0 and above.
* Replace "master" node role with "cluster_manager" in unit test

Signed-off-by: Tianli Feng <ftianli@amazon.com>
2022-06-06 13:41:56 -07:00
..
benchmark [Type removal] Remove _type support in NOOP bulk indexing from client benchmark (#3076) 2022-04-26 13:21:31 -04:00
client-benchmark-noop-api-plugin Remove type end-points from no-op bulk and search action (#2261) 2022-02-25 13:00:25 -08:00
rest Replace internal usages of 'master' term in 'client' directory (#3088) 2022-04-27 09:09:08 -04:00
rest-high-level [Type removal] Remove redundant _type in pipeline simulate action (#3371) 2022-05-18 13:43:32 -04:00
sniffer Fix the support of RestClient Node Sniffer for version 2.x and update tests (#3487) 2022-06-06 13:41:56 -07:00
test Set target and source compatibility to 11, required by Lucene 9. (#2407) 2022-03-08 14:48:51 -05:00