Skip to content

Commit 554d1ce

Browse files
committed
Skip cat tests on multiple ES versions
1 parent 66dad4f commit 554d1ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ private async Task TestCatAsync<TRecord>(Func<Task<ICatResponse<TRecord>>> call,
4242

4343

4444
[Test]
45+
[SkipVersion("0 - 1.0.3", "Fails on ES < 1.1")]
4546
public void CatAliases()
4647
{
4748
TestCat(() => this._client.CatAliases(s => s.V()), r => !r.Alias.IsNullOrEmpty());
4849
}
4950

5051
[Test]
52+
[SkipVersion("0 - 1.0.3", "Fails on ES < 1.1")]
5153
public async void CatAliasesAsync()
5254
{
5355
await TestCatAsync(() => this._client.CatAliasesAsync(), r => !r.Alias.IsNullOrEmpty());
@@ -159,24 +161,28 @@ public async void CatPendingTasksAsync()
159161
}
160162

161163
[Test]
164+
[SkipVersion("0 - 1.1.0", "Fails on ES <= 1.1.0 (#5778)")]
162165
public void CatPlugins()
163166
{
164167
TestCat(() => this._client.CatPlugins(), r => !r.Version.IsNullOrEmpty());
165168
}
166169

167170
[Test]
171+
[SkipVersion("0 - 1.1.0", "Fails on ES <= 1.1.0 (#5778)")]
168172
public async void CatPluginsAsync()
169173
{
170174
await TestCatAsync(() => this._client.CatPluginsAsync(), r => !r.Type.IsNullOrEmpty());
171175
}
172176

173177
[Test]
178+
[SkipVersion("0 - 1.0.3", "Fails on ES < 1.1")]
174179
public void CatRecovery()
175180
{
176181
TestCat(() => this._client.CatRecovery(), r => !r.Shard.IsNullOrEmpty());
177182
}
178183

179184
[Test]
185+
[SkipVersion("0 - 1.0.3", "Fails on ES < 1.1")]
180186
public async void CatRecoveryAsync()
181187
{
182188
await TestCatAsync(() => this._client.CatRecoveryAsync(), r => !r.Files.IsNullOrEmpty());

0 commit comments

Comments
 (0)