From 2e831c47f4da062f5b2b640994f07af9bd0c54d5 Mon Sep 17 00:00:00 2001 From: Brandon Shien Date: Tue, 3 Dec 2024 15:00:25 -0800 Subject: [PATCH] Track 1.3.20 in release inputs Signed-off-by: Brandon Shien --- .../opensearchmetrics/metrics/release/ReleaseInputs.java | 3 ++- .../metrics/release/ReleaseInputsTest.java | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java b/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java index bb7dc4a..37012c8 100644 --- a/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java +++ b/src/main/java/org/opensearchmetrics/metrics/release/ReleaseInputs.java @@ -21,7 +21,8 @@ public enum ReleaseInputs { 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_19("1.3.19", "closed", "1.3", true); + VERSION_1_3_19("1.3.19", "closed", "1.3", true), + VERSION_1_3_20("1.3.20", "open", "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 fef8a25..623e0d0 100644 --- a/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java +++ b/src/test/java/org/opensearchmetrics/metrics/release/ReleaseInputsTest.java @@ -30,6 +30,7 @@ public void testGetVersion() { assertEquals("1.3.17", ReleaseInputs.VERSION_1_3_17.getVersion()); assertEquals("1.3.18", ReleaseInputs.VERSION_1_3_18.getVersion()); assertEquals("1.3.19", ReleaseInputs.VERSION_1_3_19.getVersion()); + assertEquals("1.3.20", ReleaseInputs.VERSION_1_3_20.getVersion()); } @Test @@ -47,6 +48,7 @@ public void testGetState() { 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()); } @Test @@ -64,6 +66,7 @@ public void testGetBranch() { assertEquals("1.3", ReleaseInputs.VERSION_1_3_17.getBranch()); assertEquals("1.3", ReleaseInputs.VERSION_1_3_18.getBranch()); assertEquals("1.3", ReleaseInputs.VERSION_1_3_19.getBranch()); + assertEquals("1.3", ReleaseInputs.VERSION_1_3_20.getBranch()); } @Test @@ -81,12 +84,13 @@ public void testGetTrack() { assertEquals(false, ReleaseInputs.VERSION_1_3_17.getTrack()); assertEquals(true, ReleaseInputs.VERSION_1_3_18.getTrack()); assertEquals(true, ReleaseInputs.VERSION_1_3_19.getTrack()); + assertEquals(true, ReleaseInputs.VERSION_1_3_20.getTrack()); } @Test public void testGetAllReleaseInputs() { ReleaseInputs[] releaseInputs = ReleaseInputs.getAllReleaseInputs(); - assertEquals(13, releaseInputs.length); + assertEquals(14, 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]); @@ -100,6 +104,7 @@ public void testGetAllReleaseInputs() { 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]); } }