Skip to content

Commit d624044

Browse files
committed
WaitForSecurityIndices in XPackCluster
This commit calls WaitForSecurityIndices when seeding an XPack cluster, to ensure that the security index is ready before executing calls.
1 parent e8bc3b9 commit d624044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Tests.Core/ManagedElasticsearch/Clusters/XPackCluster.cs

+2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ protected virtual ConnectionSettings ConnectionSettings(ConnectionSettings s) =>
5050
protected sealed override void SeedCluster()
5151
{
5252
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
53+
Client.WaitForSecurityIndices();
5354
SeedNode();
5455
Client.Cluster.Health(new ClusterHealthRequest { WaitForStatus = WaitForStatus.Green });
56+
Client.WaitForSecurityIndices();
5557
}
5658

5759
protected virtual void SeedNode() => new DefaultSeeder(Client).SeedNode();

0 commit comments

Comments
 (0)