diff --git a/opensearch-api/Rakefile b/opensearch-api/Rakefile index c5acb6631..859c1270c 100644 --- a/opensearch-api/Rakefile +++ b/opensearch-api/Rakefile @@ -56,9 +56,9 @@ namespace :test do url = ENV['TEST_CLUSTER_URL'] || ENV['TEST_OPENSEARCH_SERVER'] url = "http://localhost:#{ENV['TEST_CLUSTER_PORT'] || 9200}" unless url client = OpenSearch::Client.new :url => url - es_version_info = client.info['version'] - version_number = es_version_info['number'] - build_hash = es_version_info['build_hash'] + os_version_info = client.info['version'] + version_number = os_version_info['number'] + build_hash = os_version_info['build_hash'] rescue Faraday::ConnectionFailed STDERR.puts "[!] Test cluster not running?" exit 1 diff --git a/opensearch-api/lib/opensearch/api/actions/cat/allocation.rb b/opensearch-api/lib/opensearch/api/actions/cat/allocation.rb index 3d0acbfe4..7d2649b2a 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/allocation.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/allocation.rb @@ -71,6 +71,7 @@ def allocation(arguments = {}) :bytes, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/indices.rb b/opensearch-api/lib/opensearch/api/actions/cat/indices.rb index 2d1ddff11..d9df4e828 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/indices.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/indices.rb @@ -76,6 +76,7 @@ def indices(arguments = {}) :bytes, :local, :master_timeout, + :cluster_manager_timeout, :h, :health, :help, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/master.rb b/opensearch-api/lib/opensearch/api/actions/cat/master.rb index b99a65aad..dad4a967a 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/master.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/master.rb @@ -61,6 +61,7 @@ def master(arguments = {}) :format, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/nodeattrs.rb b/opensearch-api/lib/opensearch/api/actions/cat/nodeattrs.rb index 2e6626035..ef34d1cb3 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/nodeattrs.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/nodeattrs.rb @@ -61,6 +61,7 @@ def nodeattrs(arguments = {}) :format, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/nodes.rb b/opensearch-api/lib/opensearch/api/actions/cat/nodes.rb index 7538e5fb4..29a75b05d 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/nodes.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/nodes.rb @@ -68,6 +68,7 @@ def nodes(arguments = {}) :full_id, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/pending_tasks.rb b/opensearch-api/lib/opensearch/api/actions/cat/pending_tasks.rb index d02b13c5f..c3f325d5a 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/pending_tasks.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/pending_tasks.rb @@ -63,6 +63,7 @@ def pending_tasks(arguments = {}) :format, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/plugins.rb b/opensearch-api/lib/opensearch/api/actions/cat/plugins.rb index 99577438b..c0c8ae92a 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/plugins.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/plugins.rb @@ -62,6 +62,7 @@ def plugins(arguments = {}) :format, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :include_bootstrap, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/shards.rb b/opensearch-api/lib/opensearch/api/actions/cat/shards.rb index 1d84e18a2..24bb9e6b2 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/shards.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/shards.rb @@ -72,6 +72,7 @@ def shards(arguments = {}) :bytes, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cat/templates.rb b/opensearch-api/lib/opensearch/api/actions/cat/templates.rb index a424e3b27..f17d02a53 100644 --- a/opensearch-api/lib/opensearch/api/actions/cat/templates.rb +++ b/opensearch-api/lib/opensearch/api/actions/cat/templates.rb @@ -68,6 +68,7 @@ def templates(arguments = {}) :format, :local, :master_timeout, + :cluster_manager_timeout, :h, :help, :s, diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/exists_component_template.rb b/opensearch-api/lib/opensearch/api/actions/cluster/exists_component_template.rb index 852ef88b3..d568ab6aa 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/exists_component_template.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/exists_component_template.rb @@ -61,6 +61,7 @@ def exists_component_template(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:exists_component_template, [ :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/get_component_template.rb b/opensearch-api/lib/opensearch/api/actions/cluster/get_component_template.rb index f5c77b95d..4a7b29eb4 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/get_component_template.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/get_component_template.rb @@ -61,6 +61,7 @@ def get_component_template(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:get_component_template, [ :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/get_settings.rb b/opensearch-api/lib/opensearch/api/actions/cluster/get_settings.rb index ff39302f8..74ab37659 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/get_settings.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/get_settings.rb @@ -57,6 +57,7 @@ def get_settings(arguments = {}) ParamsRegistry.register(:get_settings, [ :flat_settings, :master_timeout, + :cluster_manager_timeout, :timeout, :include_defaults ].freeze) diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/health.rb b/opensearch-api/lib/opensearch/api/actions/cluster/health.rb index f09c858c8..76bb55c25 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/health.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/health.rb @@ -73,6 +73,7 @@ def health(arguments = {}) :level, :local, :master_timeout, + :cluster_manager_timeout, :timeout, :wait_for_active_shards, :wait_for_nodes, diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/reroute.rb b/opensearch-api/lib/opensearch/api/actions/cluster/reroute.rb index b7c8a1afe..0e0a1b010 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/reroute.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/reroute.rb @@ -63,6 +63,7 @@ def reroute(arguments = {}) :retry_failed, :metric, :master_timeout, + :cluster_manager_timeout, :timeout ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/cluster/state.rb b/opensearch-api/lib/opensearch/api/actions/cluster/state.rb index 70c9c2128..cfef77322 100644 --- a/opensearch-api/lib/opensearch/api/actions/cluster/state.rb +++ b/opensearch-api/lib/opensearch/api/actions/cluster/state.rb @@ -73,6 +73,7 @@ def state(arguments = {}) ParamsRegistry.register(:state, [ :local, :master_timeout, + :cluster_manager_timeout, :flat_settings, :wait_for_metadata_version, :wait_for_timeout, diff --git a/opensearch-api/lib/opensearch/api/actions/delete_script.rb b/opensearch-api/lib/opensearch/api/actions/delete_script.rb index 1bde23eb7..15fd9a9fd 100644 --- a/opensearch-api/lib/opensearch/api/actions/delete_script.rb +++ b/opensearch-api/lib/opensearch/api/actions/delete_script.rb @@ -58,7 +58,8 @@ def delete_script(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:delete_script, [ :timeout, - :master_timeout + :master_timeout, + :cluster_manager_timeout ].freeze) end end diff --git a/opensearch-api/lib/opensearch/api/actions/get_script.rb b/opensearch-api/lib/opensearch/api/actions/get_script.rb index b5d5abf86..aae8b672d 100644 --- a/opensearch-api/lib/opensearch/api/actions/get_script.rb +++ b/opensearch-api/lib/opensearch/api/actions/get_script.rb @@ -56,7 +56,8 @@ def get_script(arguments = {}) # # @since 6.2.0 ParamsRegistry.register(:get_script, [ - :master_timeout + :master_timeout, + :cluster_manager_timeout ].freeze) end end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/clone.rb b/opensearch-api/lib/opensearch/api/actions/indices/clone.rb index c953348c2..a770dae79 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/clone.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/clone.rb @@ -66,6 +66,7 @@ def clone(arguments = {}) ParamsRegistry.register(:clone, [ :timeout, :master_timeout, + :cluster_manager_timeout, :wait_for_active_shards ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/close.rb b/opensearch-api/lib/opensearch/api/actions/indices/close.rb index 371d5d2c9..7b0d7bb87 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/close.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/close.rb @@ -64,6 +64,7 @@ def close(arguments = {}) ParamsRegistry.register(:close, [ :timeout, :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :allow_no_indices, :expand_wildcards, diff --git a/opensearch-api/lib/opensearch/api/actions/indices/delete.rb b/opensearch-api/lib/opensearch/api/actions/indices/delete.rb index e45e3dbd5..db72a0543 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/delete.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/delete.rb @@ -67,6 +67,7 @@ def delete(arguments = {}) ParamsRegistry.register(:delete, [ :timeout, :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :allow_no_indices, :expand_wildcards diff --git a/opensearch-api/lib/opensearch/api/actions/indices/exists_template.rb b/opensearch-api/lib/opensearch/api/actions/indices/exists_template.rb index 6e37c4cfa..524cbf85f 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/exists_template.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/exists_template.rb @@ -66,6 +66,7 @@ def exists_template(arguments = {}) ParamsRegistry.register(:exists_template, [ :flat_settings, :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/get_index_template.rb b/opensearch-api/lib/opensearch/api/actions/indices/get_index_template.rb index ba7ea792a..b3062d931 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/get_index_template.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/get_index_template.rb @@ -63,6 +63,7 @@ def get_index_template(arguments = {}) ParamsRegistry.register(:get_index_template, [ :flat_settings, :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/get_mapping.rb b/opensearch-api/lib/opensearch/api/actions/indices/get_mapping.rb index b3277a052..91a1c27d4 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/get_mapping.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/get_mapping.rb @@ -72,6 +72,7 @@ def get_mapping(arguments = {}) :allow_no_indices, :expand_wildcards, :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/get_settings.rb b/opensearch-api/lib/opensearch/api/actions/indices/get_settings.rb index d6fcb081a..12a9e4a8c 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/get_settings.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/get_settings.rb @@ -73,6 +73,7 @@ def get_settings(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:get_settings, [ :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :allow_no_indices, :expand_wildcards, diff --git a/opensearch-api/lib/opensearch/api/actions/indices/get_template.rb b/opensearch-api/lib/opensearch/api/actions/indices/get_template.rb index 388eba8cd..4c030d2e3 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/get_template.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/get_template.rb @@ -63,6 +63,7 @@ def get_template(arguments = {}) ParamsRegistry.register(:get_template, [ :flat_settings, :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/open.rb b/opensearch-api/lib/opensearch/api/actions/indices/open.rb index 634c1d9a5..ad2cc5e49 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/open.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/open.rb @@ -63,6 +63,7 @@ def open(arguments = {}) ParamsRegistry.register(:open, [ :timeout, :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :allow_no_indices, :expand_wildcards, diff --git a/opensearch-api/lib/opensearch/api/actions/indices/put_mapping.rb b/opensearch-api/lib/opensearch/api/actions/indices/put_mapping.rb index 782b8653c..53e4621eb 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/put_mapping.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/put_mapping.rb @@ -70,6 +70,7 @@ def put_mapping(arguments = {}) ParamsRegistry.register(:put_mapping, [ :timeout, :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :allow_no_indices, :expand_wildcards, diff --git a/opensearch-api/lib/opensearch/api/actions/indices/put_settings.rb b/opensearch-api/lib/opensearch/api/actions/indices/put_settings.rb index 30f7730c5..e80d450e9 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/put_settings.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/put_settings.rb @@ -69,6 +69,7 @@ def put_settings(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:put_settings, [ :master_timeout, + :cluster_manager_timeout, :timeout, :preserve_existing, :ignore_unavailable, diff --git a/opensearch-api/lib/opensearch/api/actions/indices/rollover.rb b/opensearch-api/lib/opensearch/api/actions/indices/rollover.rb index 57e28429d..e8561b534 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/rollover.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/rollover.rb @@ -72,6 +72,7 @@ def rollover(arguments = {}) :timeout, :dry_run, :master_timeout, + :cluster_manager_timeout, :wait_for_active_shards ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/indices/split.rb b/opensearch-api/lib/opensearch/api/actions/indices/split.rb index 0374e35a9..912c16561 100644 --- a/opensearch-api/lib/opensearch/api/actions/indices/split.rb +++ b/opensearch-api/lib/opensearch/api/actions/indices/split.rb @@ -68,6 +68,7 @@ def split(arguments = {}) :copy_settings, :timeout, :master_timeout, + :cluster_manager_timeout, :wait_for_active_shards ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/ingest/delete_pipeline.rb b/opensearch-api/lib/opensearch/api/actions/ingest/delete_pipeline.rb index 28e424d25..c3c9fd31e 100644 --- a/opensearch-api/lib/opensearch/api/actions/ingest/delete_pipeline.rb +++ b/opensearch-api/lib/opensearch/api/actions/ingest/delete_pipeline.rb @@ -59,6 +59,7 @@ def delete_pipeline(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:delete_pipeline, [ :master_timeout, + :cluster_manager_timeout, :timeout ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/ingest/put_pipeline.rb b/opensearch-api/lib/opensearch/api/actions/ingest/put_pipeline.rb index 12f3ece46..a454c5d05 100644 --- a/opensearch-api/lib/opensearch/api/actions/ingest/put_pipeline.rb +++ b/opensearch-api/lib/opensearch/api/actions/ingest/put_pipeline.rb @@ -61,6 +61,7 @@ def put_pipeline(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:put_pipeline, [ :master_timeout, + :cluster_manager_timeout, :timeout ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/put_script.rb b/opensearch-api/lib/opensearch/api/actions/put_script.rb index c7c652e7d..da801d641 100644 --- a/opensearch-api/lib/opensearch/api/actions/put_script.rb +++ b/opensearch-api/lib/opensearch/api/actions/put_script.rb @@ -68,6 +68,7 @@ def put_script(arguments = {}) ParamsRegistry.register(:put_script, [ :timeout, :master_timeout, + :cluster_manager_timeout, :context ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/create.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/create.rb index fe13a1d66..e80cc12f5 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/create.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/create.rb @@ -64,6 +64,7 @@ def create(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:create, [ :master_timeout, + :cluster_manager_timeout, :wait_for_completion ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/create_repository.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/create_repository.rb index 2e6ca50b5..d5b0db02a 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/create_repository.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/create_repository.rb @@ -62,6 +62,7 @@ def create_repository(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:create_repository, [ :master_timeout, + :cluster_manager_timeout, :timeout, :verify ].freeze) diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/delete_repository.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/delete_repository.rb index 3d8685df4..1ca89e543 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/delete_repository.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/delete_repository.rb @@ -63,6 +63,7 @@ def delete_repository(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:delete_repository, [ :master_timeout, + :cluster_manager_timeout, :timeout ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/get.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/get.rb index 43b03a158..a79123da6 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/get.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/get.rb @@ -70,6 +70,7 @@ def get(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:get, [ :master_timeout, + :cluster_manager_timeout, :ignore_unavailable, :index_details, :include_repository, diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/get_repository.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/get_repository.rb index 22ae7c6b9..c3d76bdca 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/get_repository.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/get_repository.rb @@ -64,6 +64,7 @@ def get_repository(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:get_repository, [ :master_timeout, + :cluster_manager_timeout, :local ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/restore.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/restore.rb index a1dbee83f..0110b1304 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/restore.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/restore.rb @@ -64,6 +64,7 @@ def restore(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:restore, [ :master_timeout, + :cluster_manager_timeout, :wait_for_completion ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/status.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/status.rb index ebf750ca8..55ac7ccad 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/status.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/status.rb @@ -70,6 +70,7 @@ def status(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:status, [ :master_timeout, + :cluster_manager_timeout, :ignore_unavailable ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/actions/snapshot/verify_repository.rb b/opensearch-api/lib/opensearch/api/actions/snapshot/verify_repository.rb index 7e8c817d3..bb1f352c5 100644 --- a/opensearch-api/lib/opensearch/api/actions/snapshot/verify_repository.rb +++ b/opensearch-api/lib/opensearch/api/actions/snapshot/verify_repository.rb @@ -59,6 +59,7 @@ def verify_repository(arguments = {}) # @since 6.2.0 ParamsRegistry.register(:verify_repository, [ :master_timeout, + :cluster_manager_timeout, :timeout ].freeze) end diff --git a/opensearch-api/lib/opensearch/api/version.rb b/opensearch-api/lib/opensearch/api/version.rb index f97402d77..469a4db4c 100644 --- a/opensearch-api/lib/opensearch/api/version.rb +++ b/opensearch-api/lib/opensearch/api/version.rb @@ -26,6 +26,6 @@ module OpenSearch module API - VERSION = '2.0.2'.freeze + VERSION = '2.1.0'.freeze end end diff --git a/opensearch-api/spec/opensearch/api/actions/cat/allocation_spec.rb b/opensearch-api/spec/opensearch/api/actions/cat/allocation_spec.rb index fbcac8e59..969953dd2 100644 --- a/opensearch-api/spec/opensearch/api/actions/cat/allocation_spec.rb +++ b/opensearch-api/spec/opensearch/api/actions/cat/allocation_spec.rb @@ -41,4 +41,18 @@ it 'performs the request' do expect(client_double.cat.allocation).to eq({}) end + + let(:expected_args) do + [ + 'GET', + '_cat/allocation', + {cluster_manager_timeout: 2}, + nil, + {} + ] + end + + it 'performs the request' do + expect(client_double.cat.allocation(cluster_manager_timeout: 2)).to eq({}) + end end diff --git a/opensearch/lib/opensearch/version.rb b/opensearch/lib/opensearch/version.rb index 125eca38e..955cbe2fd 100644 --- a/opensearch/lib/opensearch/version.rb +++ b/opensearch/lib/opensearch/version.rb @@ -25,5 +25,5 @@ # under the License. module OpenSearch - VERSION = '2.0.3'.freeze + VERSION = '2.1.0'.freeze end diff --git a/opensearch/opensearch.gemspec b/opensearch/opensearch.gemspec index 448061b21..3675f0230 100644 --- a/opensearch/opensearch.gemspec +++ b/opensearch/opensearch.gemspec @@ -61,8 +61,8 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.4' - s.add_dependency 'opensearch-transport', '~> 2.0.0' - s.add_dependency 'opensearch-api', '2.0.2' + s.add_dependency 'opensearch-transport', '~> 2.0' + s.add_dependency 'opensearch-api', '~> 2.1' s.add_development_dependency 'bundler' s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)