diff --git a/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java b/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java index 37012c8..0a7fff0 100644 --- a/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java +++ b/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java @@ -17,12 +17,13 @@ public enum ReleaseInputs { VERSION_2_16_0("2.16.0", "closed", "2.16", false), VERSION_2_17_0("2.17.0", "closed", "2.17", true), VERSION_2_18_0("2.18.0", "closed", "2.18", true), + VERSION_2_19_0("2.19.0", "open", "2.x", true), VERSION_1_3_15("1.3.15", "closed", "1.3", false), VERSION_1_3_16("1.3.16", "closed", "1.3", false), VERSION_1_3_17("1.3.17", "closed", "1.3", false), - VERSION_1_3_18("1.3.18", "closed", "1.3", true), + VERSION_1_3_18("1.3.18", "closed", "1.3", false), VERSION_1_3_19("1.3.19", "closed", "1.3", true), - VERSION_1_3_20("1.3.20", "open", "1.3", true); + VERSION_1_3_20("1.3.20", "closed", "1.3", true); private final String version; private final String state; diff --git a/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java b/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java index 623e0d0..d539216 100644 --- a/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java +++ b/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java @@ -25,6 +25,7 @@ public void testGetVersion() { assertEquals("2.16.0", ReleaseInputs.VERSION_2_16_0.getVersion()); assertEquals("2.17.0", ReleaseInputs.VERSION_2_17_0.getVersion()); assertEquals("2.18.0", ReleaseInputs.VERSION_2_18_0.getVersion()); + assertEquals("2.19.0", ReleaseInputs.VERSION_2_19_0.getVersion()); assertEquals("1.3.15", ReleaseInputs.VERSION_1_3_15.getVersion()); assertEquals("1.3.16", ReleaseInputs.VERSION_1_3_16.getVersion()); assertEquals("1.3.17", ReleaseInputs.VERSION_1_3_17.getVersion()); @@ -43,12 +44,13 @@ public void testGetState() { assertEquals("closed", ReleaseInputs.VERSION_2_16_0.getState()); assertEquals("closed", ReleaseInputs.VERSION_2_17_0.getState()); assertEquals("closed", ReleaseInputs.VERSION_2_18_0.getState()); + assertEquals("open", ReleaseInputs.VERSION_2_19_0.getState()); assertEquals("closed", ReleaseInputs.VERSION_1_3_15.getState()); assertEquals("closed", ReleaseInputs.VERSION_1_3_16.getState()); assertEquals("closed", ReleaseInputs.VERSION_1_3_17.getState()); assertEquals("closed", ReleaseInputs.VERSION_1_3_18.getState()); assertEquals("closed", ReleaseInputs.VERSION_1_3_19.getState()); - assertEquals("open", ReleaseInputs.VERSION_1_3_20.getState()); + assertEquals("closed", ReleaseInputs.VERSION_1_3_20.getState()); } @Test @@ -61,6 +63,7 @@ public void testGetBranch() { assertEquals("2.16", ReleaseInputs.VERSION_2_16_0.getBranch()); assertEquals("2.17", ReleaseInputs.VERSION_2_17_0.getBranch()); assertEquals("2.18", ReleaseInputs.VERSION_2_18_0.getBranch()); + assertEquals("2.x", ReleaseInputs.VERSION_2_19_0.getBranch()); assertEquals("1.3", ReleaseInputs.VERSION_1_3_15.getBranch()); assertEquals("1.3", ReleaseInputs.VERSION_1_3_16.getBranch()); assertEquals("1.3", ReleaseInputs.VERSION_1_3_17.getBranch()); @@ -82,7 +85,7 @@ public void testGetTrack() { assertEquals(false, ReleaseInputs.VERSION_1_3_15.getTrack()); assertEquals(false, ReleaseInputs.VERSION_1_3_16.getTrack()); assertEquals(false, ReleaseInputs.VERSION_1_3_17.getTrack()); - assertEquals(true, ReleaseInputs.VERSION_1_3_18.getTrack()); + assertEquals(false, ReleaseInputs.VERSION_1_3_18.getTrack()); assertEquals(true, ReleaseInputs.VERSION_1_3_19.getTrack()); assertEquals(true, ReleaseInputs.VERSION_1_3_20.getTrack()); } @@ -90,7 +93,7 @@ public void testGetTrack() { @Test public void testGetAllReleaseInputs() { ReleaseInputs[] releaseInputs = ReleaseInputs.getAllReleaseInputs(); - assertEquals(14, releaseInputs.length); + assertEquals(15, releaseInputs.length); assertEquals(ReleaseInputs.VERSION_3_0_0, releaseInputs[0]); assertEquals(ReleaseInputs.VERSION_2_12_0, releaseInputs[1]); assertEquals(ReleaseInputs.VERSION_2_13_0, releaseInputs[2]); @@ -99,12 +102,13 @@ public void testGetAllReleaseInputs() { assertEquals(ReleaseInputs.VERSION_2_16_0, releaseInputs[5]); assertEquals(ReleaseInputs.VERSION_2_17_0, releaseInputs[6]); assertEquals(ReleaseInputs.VERSION_2_18_0, releaseInputs[7]); - assertEquals(ReleaseInputs.VERSION_1_3_15, releaseInputs[8]); - assertEquals(ReleaseInputs.VERSION_1_3_16, releaseInputs[9]); - assertEquals(ReleaseInputs.VERSION_1_3_17, releaseInputs[10]); - assertEquals(ReleaseInputs.VERSION_1_3_18, releaseInputs[11]); - assertEquals(ReleaseInputs.VERSION_1_3_19, releaseInputs[12]); - assertEquals(ReleaseInputs.VERSION_1_3_20, releaseInputs[13]); + assertEquals(ReleaseInputs.VERSION_2_19_0, releaseInputs[8]); + assertEquals(ReleaseInputs.VERSION_1_3_15, releaseInputs[9]); + assertEquals(ReleaseInputs.VERSION_1_3_16, releaseInputs[10]); + assertEquals(ReleaseInputs.VERSION_1_3_17, releaseInputs[11]); + assertEquals(ReleaseInputs.VERSION_1_3_18, releaseInputs[12]); + assertEquals(ReleaseInputs.VERSION_1_3_19, releaseInputs[13]); + assertEquals(ReleaseInputs.VERSION_1_3_20, releaseInputs[14]); } }