From b1846190afbadec7a7f65c52b7e4f566a6a021eb Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 8 Dec 2016 23:11:20 -0800 Subject: [PATCH] Remove uses of 2.0 prerelease constants This is the xplugins side of elastic/elasticsearchelastic/elasticsearch#22004 Original commit: elastic/x-pack-elasticsearch@55433d760cb28e943e7a6eed61fb47b79ce0fd5d --- .../monitoring/exporter/http/VersionHttpResourceTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/VersionHttpResourceTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/VersionHttpResourceTests.java index 801986548b9..d6005b57046 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/VersionHttpResourceTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/VersionHttpResourceTests.java @@ -11,6 +11,7 @@ import org.elasticsearch.Version; import org.elasticsearch.client.Response; import org.elasticsearch.client.RestClient; import org.elasticsearch.test.ESTestCase; +import org.elasticsearch.test.VersionUtils; import java.io.IOException; @@ -27,8 +28,7 @@ public class VersionHttpResourceTests extends ESTestCase { private final RestClient client = mock(RestClient.class); public void testDoCheckAndPublishSuccess() throws IOException { - final Version minimumVersion = - randomFrom(Version.V_2_0_0, Version.V_2_0_0_beta1, Version.V_2_0_0_rc1, Version.V_2_3_3, Version.CURRENT); + final Version minimumVersion = VersionUtils.randomVersion(random()); final Version version = randomFrom(minimumVersion, Version.CURRENT); final Response response = responseForVersion(version);