Skip to content

Commit 7486244

Browse files
committed
implement PR feedback on #2743
1 parent 22ad002 commit 7486244

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

src/Nest/Cluster/RemoteInfo/ElasticClient-RemoteInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// The cluster health API allows to get a very simple status on the health of the cluster.
12-
/// <para> </para><a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-health.html">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-health.html</a>
11+
/// The cluster remote info API allows to retrieve all of the configured remote cluster information.
12+
/// <para> </para><a href="http://www.elastic.co/guide/en/elasticsearch/reference/master/remote-info.html">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/remote-info.html</a>
1313
/// </summary>
14-
/// <param name="selector">An optional descriptor to further describe the cluster health operation</param>
14+
/// <param name="selector">An optional descriptor to further describe the remote info operation</param>
1515
IRemoteInfoResponse RemoteInfo(Func<RemoteInfoDescriptor, IRemoteInfoRequest> selector = null);
1616

1717
/// <inheritdoc/>

src/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
using Tests.Framework.Integration;
77
using Tests.Framework.ManagedElasticsearch.Clusters;
88
using Tests.Framework.MockData;
9-
using Xunit;
10-
using M = System.Collections.Generic.Dictionary<string, object>;
119
using static Nest.Infer;
1210

1311
namespace Tests.Cluster.RemoteInfo
@@ -18,14 +16,14 @@ protected override void IntegrationSetup(IElasticClient client, CallUniqueValues
1816
{
1917
var enableRemoteClusters = client.ClusterPutSettings(new ClusterPutSettingsRequest
2018
{
21-
Transient = new M
19+
Transient = new Dictionary<string, object>
2220
{
23-
{ "search", new M {
24-
{ "remote", new M {
25-
{ "cluster_one", new M {
21+
{ "search", new Dictionary<string, object> {
22+
{ "remote", new Dictionary<string, object> {
23+
{ "cluster_one", new Dictionary<string, object> {
2624
{"seeds", new[] {"127.0.0.1:9300", "127.0.0.1:9301"}}
2725
}},
28-
{ "cluster_two", new M {
26+
{ "cluster_two", new Dictionary<string, object> {
2927
{"seeds", new[] {"127.0.0.1:9300"}}
3028
}}
3129
}}
@@ -39,9 +37,7 @@ protected override void IntegrationSetup(IElasticClient client, CallUniqueValues
3937
remoteSearch.IsValid.Should().BeTrue(remoteSearch.DebugInformation);
4038
}
4139

42-
public RemoteInfoApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage)
43-
{
44-
}
40+
public RemoteInfoApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
4541

4642
protected override LazyResponses ClientUsage() => Calls(
4743
fluent: (client, f) => client.RemoteInfo(),

0 commit comments

Comments
 (0)