Remove uses of 2.0 prerelease constants

This is the xplugins side of elastic/elasticsearchelastic/elasticsearch#22004

Original commit: elastic/x-pack-elasticsearch@55433d760c
This commit is contained in:
Ryan Ernst 2016-12-08 23:11:20 -08:00
parent e6d758b92b
commit b1846190af
1 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import org.elasticsearch.Version;
import org.elasticsearch.client.Response; import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestClient; import org.elasticsearch.client.RestClient;
import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.VersionUtils;
import java.io.IOException; import java.io.IOException;
@ -27,8 +28,7 @@ public class VersionHttpResourceTests extends ESTestCase {
private final RestClient client = mock(RestClient.class); private final RestClient client = mock(RestClient.class);
public void testDoCheckAndPublishSuccess() throws IOException { public void testDoCheckAndPublishSuccess() throws IOException {
final Version minimumVersion = final Version minimumVersion = VersionUtils.randomVersion(random());
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 version = randomFrom(minimumVersion, Version.CURRENT); final Version version = randomFrom(minimumVersion, Version.CURRENT);
final Response response = responseForVersion(version); final Response response = responseForVersion(version);