From 695e928c875033d25dcf1bbbdeeb6a4925670c48 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Wed, 8 Nov 2023 15:21:21 +1300 Subject: [PATCH] Try fix RemoteInfoApiTests Signed-off-by: Thomas Farr --- .../Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs b/tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs index ad575f4a0e..c1235b84ae 100644 --- a/tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs +++ b/tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs @@ -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(s => s.Index(Index("cluster_one").And("cluster_two")));