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")));