Skip to content

Commit

Permalink
Fix RemoteInfoApiTests
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Nov 8, 2023
1 parent 91117e4 commit 004e18d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ public RemoteInfoApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(c

protected override void IntegrationSetup(IOpenSearchClient client, CallUniqueValues values)
{
var enableRemoteClusters = client.Cluster.PutSettings(new ClusterPutSettingsRequest
{
Transient = new RemoteClusterConfiguration()
{
{ "cluster_one", "127.0.0.1:9300", "127.0.0.1:9301" },
{ "cluster_two", "127.0.0.1:9300" }
}
});
var enableRemoteClusters = client.Cluster.PutSettings(s => s
.Transient(t => t
.Add("cluster.remote.cluster_one.seeds", new[] { "127.0.0.1:9300", "127.0.0.1:9301" })
.Add("cluster.remote.cluster_one.skip_unavailable", true)
.Add("cluster.remote.cluster_two.seeds", new[] { "127.0.0.1:9300" })
.Add("cluster.remote.cluster_two.skip_unavailable", true)));
enableRemoteClusters.ShouldBeValid();

var remoteSearch = client.Search<Project>(s => s.Index(Index<Project>("cluster_one").And<Project>("cluster_two")));
Expand Down

0 comments on commit 004e18d

Please sign in to comment.