Skip to content

Commit 8d374c3

Browse files
committed
Skip cat segments tests on ES < 1.1
1 parent 8e6679c commit 8d374c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Tests/Nest.Tests.Integration/Core/Cat/CatTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,13 @@ public async void CatShardsAsync()
225225
}
226226

227227
[Test]
228+
[SkipVersion("0 - 1.0.9", "cat segments added in 1.1")]
228229
public void CatSegments()
229230
{
230231
TestCat(() => this._client.CatSegments(), r => !r.Index.IsNullOrEmpty() && !r.Shard.IsNullOrEmpty() && !r.PrimaryReplica.IsNullOrEmpty() && !r.Ip.IsNullOrEmpty() && !r.Segment.IsNullOrEmpty() && !r.Generation.IsNullOrEmpty() && !r.DocsCount.IsNullOrEmpty() && !r.DocsDeleted.IsNullOrEmpty() && !r.Size.IsNullOrEmpty() && !r.SizeMemory.IsNullOrEmpty() && !r.Committed.IsNullOrEmpty() && !r.Searchable.IsNullOrEmpty() && !r.Version.IsNullOrEmpty() && !r.Compound.IsNullOrEmpty());
231232
}
232233

234+
[SkipVersion("0 - 1.0.9", "cat segments added in 1.1")]
233235
[Test]
234236
public async void CatSegmentsAsync()
235237
{

0 commit comments

Comments
 (0)