Remove unwanted unreleased versions (#1877)
Only last major (2.0.0), last minor(1.3.0) and (1.2.4) can be unreleased Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
412bf82a4a
commit
40442aae7f
|
@ -71,9 +71,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|||
public static final Version V_EMPTY = new Version(V_EMPTY_ID, org.apache.lucene.util.Version.LATEST);
|
||||
|
||||
public static final Version V_1_0_0 = new Version(1000099, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_0_1 = new Version(1000199, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_1_0 = new Version(1010099, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
||||
public static final Version V_1_1_1 = new Version(1010199, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
||||
public static final Version V_1_2_0 = new Version(1020099, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
||||
public static final Version V_1_2_1 = new Version(1020199, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
||||
public static final Version V_1_2_2 = new Version(1020299, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
||||
|
|
|
@ -49,7 +49,6 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.opensearch.Version.V_1_1_1;
|
||||
import static org.opensearch.Version.V_1_3_0;
|
||||
import static org.opensearch.Version.MASK;
|
||||
import static org.opensearch.test.VersionUtils.allVersions;
|
||||
|
@ -68,6 +67,7 @@ import static org.hamcrest.Matchers.sameInstance;
|
|||
public class VersionTests extends OpenSearchTestCase {
|
||||
|
||||
public void testVersionComparison() {
|
||||
Version V_1_1_1 = Version.fromString("1.1.1");
|
||||
assertThat(V_1_1_1.before(V_1_3_0), is(true));
|
||||
assertThat(V_1_1_1.before(V_1_1_1), is(false));
|
||||
assertThat(V_1_3_0.before(V_1_1_1), is(false));
|
||||
|
|
Loading…
Reference in New Issue