From da9712e7466488c773ab95a0e43bafbe8490d3ae Mon Sep 17 00:00:00 2001 From: Tim Vernum Date: Tue, 15 Dec 2020 16:57:22 +1100 Subject: [PATCH] Update version constants in DataStreams BWC Test This change updates version constants in `FullClusterRestartIT` to reflect the fact that #65205 was backported to v7.11 (as #66307) --- .../org/elasticsearch/xpack/restart/FullClusterRestartIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java index 1ce31f0e68e32..5709e10414198 100644 --- a/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java +++ b/x-pack/qa/full-cluster-restart/src/test/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java @@ -719,7 +719,7 @@ public void testDataStreams() throws Exception { List> indices = (List>) ds.get("indices"); assertEquals("ds", ds.get("name")); assertEquals(1, indices.size()); - assertEquals(getOldClusterVersion().onOrAfter(Version.V_8_0_0) + assertEquals(getOldClusterVersion().onOrAfter(Version.V_7_11_0) ? DataStream.getDefaultBackingIndexName("ds", 1) : DataStreamTestHelper.getLegacyDefaultBackingIndexName("ds", 1), indices.get(0).get("index_name"));