Skip to content

Commit 2e305e4

Browse files
committed
Tests: Fix FullClusterRestartIT.testSnapshotRestore test failing in 6.x (#27218)
We switched to using index_patterns in 6.0.0, so we need to expect index_patterns there. Closes #27213
1 parent a3eec3a commit 2e305e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ private void checkSnapshot(String snapshotName, int count, Version tookOnVersion
857857
// Check that the template was restored successfully
858858
map = toMap(client().performRequest("GET", "/_template/test_template"));
859859
expected = new HashMap<>();
860-
if (runningAgainstOldCluster) {
860+
if (runningAgainstOldCluster && oldClusterVersion.before(Version.V_6_0_0_beta1)) {
861861
expected.put("template", "evil_*");
862862
} else {
863863
expected.put("index_patterns", singletonList("evil_*"));

0 commit comments

Comments
 (0)