From 16e3bb45876c798c9e185e1b521e0afff0b0b80d Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 30 Nov 2016 11:09:19 -0500 Subject: [PATCH] Add version 5.1.1 This commit adapts x-plugins for the removal of the version constant for 5.1.0 and the addition of the version constant for 5.1.1 in core. Relates elastic/elasticsearch#4223 Original commit: elastic/x-pack-elasticsearch@2fa92f00567797cd7313f6c385b9acd3ba6e236f --- .../OldSecurityIndexBackwardsCompatibilityTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elasticsearch/src/test/java/org/elasticsearch/OldSecurityIndexBackwardsCompatibilityTests.java b/elasticsearch/src/test/java/org/elasticsearch/OldSecurityIndexBackwardsCompatibilityTests.java index ccea7cd64ed..ee66d9c1a01 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/OldSecurityIndexBackwardsCompatibilityTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/OldSecurityIndexBackwardsCompatibilityTests.java @@ -13,7 +13,6 @@ import org.elasticsearch.cluster.metadata.AliasMetaData; import org.elasticsearch.common.bytes.BytesArray; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; -import org.elasticsearch.test.VersionUtils; import org.elasticsearch.xpack.XPackFeatureSet; import org.elasticsearch.xpack.action.XPackUsageRequestBuilder; import org.elasticsearch.xpack.action.XPackUsageResponse; @@ -139,7 +138,7 @@ public class OldSecurityIndexBackwardsCompatibilityTests extends AbstractOldXPac /* check that a search that misses all documents doesn't hit any alias starting with `-`. We have one in the backwards compatibility * indices for versions before 5.1.0 because we can't create them any more. */ - if (version.before(Version.V_5_1_0_UNRELEASED)) { + if (version.before(Version.V_5_1_1_UNRELEASED)) { GetAliasesResponse aliasesResponse = client().admin().indices().prepareGetAliases().get(); List aliases = aliasesResponse.getAliases().get("index3"); assertThat("alias doesn't exist", aliases, hasSize(1));