Skip to content

Commit

Permalink
Track 1.3.20 in release inputs (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Shien <[email protected]>
  • Loading branch information
bshien authored Dec 3, 2024
1 parent 7d0c969 commit beea127
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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]);
Expand All @@ -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]);
}

}

0 comments on commit beea127

Please sign in to comment.