Skip to content

Commit

Permalink
fix(): fix expected RC version name
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimGl committed Feb 27, 2024
1 parent 6247f3f commit 54f2b0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ public void setUp() throws Exception {

@Test
public void should_return_chutney_version() throws Exception {
String versionRegex = "\\d\\.\\d\\.\\d+(-SNAPSHOT|-RC(\\d+)*)?";
this.mockMvc.perform(get("/api/v1/info/build/version")).andDo(print()).andExpect(status().isOk())
.andExpect(content().string(matchesRegex("\\d\\.\\d\\.\\d+(-SNAPSHOT|-rc\\.d+)?")));
.andExpect(content().string(matchesRegex(versionRegex)));
}

@Test
Expand Down

0 comments on commit 54f2b0e

Please sign in to comment.