Skip to content

Commit 5fe6bd1

Browse files
committed
[XPACK] Updates info endpoint
1 parent 29058f3 commit 5fe6bd1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/info.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module Actions
2222
# Retrieves information about the installed X-Pack features.
2323
#
2424
# @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features
25+
# @option arguments [Boolean] :accept_enterprise If an enterprise license is installed, return the type and mode as 'enterprise' (default: false)
2526
# @option arguments [Hash] :headers Custom HTTP headers
2627
#
2728
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/info-api.html
@@ -43,7 +44,8 @@ def info(arguments = {})
4344
#
4445
# @since 6.2.0
4546
ParamsRegistry.register(:info, [
46-
:categories
47+
:categories,
48+
:accept_enterprise
4749
].freeze)
4850
end
4951
end

elasticsearch-xpack/test/unit/info_test.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
module Elasticsearch
2121
module Test
2222
class XPackInfoTest < Minitest::Test
23-
2423
context "XPack: Info" do
2524
subject { FakeClient.new }
2625

@@ -35,9 +34,7 @@ class XPackInfoTest < Minitest::Test
3534

3635
subject.xpack.info
3736
end
38-
3937
end
40-
4138
end
4239
end
4340
end

0 commit comments

Comments
 (0)