Skip to content

Commit

Permalink
Adding cluster manager to more URL params
Browse files Browse the repository at this point in the history
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
  • Loading branch information
harshavamsi committed Nov 15, 2022
1 parent b3640c5 commit e0d38a4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions opensearch-api/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def allocation(arguments = {})
:bytes,
:local,
:master_timeout,
:cluster_manager_timeout,
:h,
:help,
:s,
Expand Down
3 changes: 2 additions & 1 deletion opensearch-api/lib/opensearch/api/actions/get_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions opensearch-api/lib/opensearch/api/actions/indices/clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def clone(arguments = {})
ParamsRegistry.register(:clone, [
:timeout,
:master_timeout,
:cluster_manager_timeout,
:wait_for_active_shards
].freeze)
end
Expand Down
2 changes: 1 addition & 1 deletion opensearch-api/lib/opensearch/api/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

module OpenSearch
module API
VERSION = '2.0.2'.freeze
VERSION = '2.1.0'.freeze
end
end
2 changes: 1 addition & 1 deletion opensearch/lib/opensearch/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
# under the License.

module OpenSearch
VERSION = '2.0.3'.freeze
VERSION = '2.1.0'.freeze
end
4 changes: 2 additions & 2 deletions opensearch/opensearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0d38a4

Please sign in to comment.