Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RemoteInfoApiTests #426

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading