Skip to content

Commit

Permalink
Tests: Fix FullClusterRestartIT.testSnapshotRestore test failing in 6…
Browse files Browse the repository at this point in the history
….x (#27218)

We switched to using index_patterns in 6.0.0, so we need to expect index_patterns there.

Closes #27213
  • Loading branch information
imotov committed Nov 3, 2017
1 parent a3eec3a commit 2e305e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ private void checkSnapshot(String snapshotName, int count, Version tookOnVersion
// Check that the template was restored successfully
map = toMap(client().performRequest("GET", "/_template/test_template"));
expected = new HashMap<>();
if (runningAgainstOldCluster) {
if (runningAgainstOldCluster && oldClusterVersion.before(Version.V_6_0_0_beta1)) {
expected.put("template", "evil_*");
} else {
expected.put("index_patterns", singletonList("evil_*"));
Expand Down

0 comments on commit 2e305e4

Please sign in to comment.