Skip to content

Commit 177a7d1

Browse files
committed
Merge branch 'master' of github.com:elastic/elasticsearch-net
2 parents 53a828e + 05f870e commit 177a7d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Tests/Indices/ReloadSearchAnalyzers/ReloadSearchAnalyzersApiTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Linq;
23
using Elastic.Xunit.XunitPlumbing;
34
using Elasticsearch.Net;
45
using Nest;
@@ -18,6 +19,18 @@ public ReloadSearchAnalyzersApiTests(ReadOnlyCluster cluster, EndpointUsage usag
1819
protected override bool ExpectIsValid => true;
1920
protected override int ExpectStatusCode => 200;
2021

22+
protected override void OnBeforeCall(IElasticClient client)
23+
{
24+
var create = client.Indices.Create(CallIsolatedValue, c => c
25+
.Settings(s => s
26+
.NumberOfShards(4)
27+
.NumberOfRoutingShards(8)
28+
.NumberOfReplicas(0)
29+
)
30+
);
31+
create.ShouldBeValid();
32+
}
33+
2134
protected override ReloadSearchAnalyzersDescriptor NewDescriptor() => new ReloadSearchAnalyzersDescriptor(CallIsolatedValue);
2235

2336
protected override Func<ReloadSearchAnalyzersDescriptor, IReloadSearchAnalyzersRequest> Fluent => d => d.Index(CallIsolatedValue);

0 commit comments

Comments
 (0)