Skip to content

Commit

Permalink
Fix the test case for the build endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Dec 14, 2023
1 parent c3a19fd commit 714a212
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ void requestReturnsBuildInfo() throws Exception {
mockMvc.perform(get("/json/build"))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))
.andExpect(jsonPath("$.bambooBuildVersion", isA(String.class)))
.andExpect(jsonPath("$.gitBranch", isA(String.class)))
.andExpect(jsonPath("$.gitCommitID", isA(String.class)))
.andExpect(jsonPath("$.tomcatHostname", isA(String.class)));
.andExpect(jsonPath("$['Build version']", isA(String.class)))
.andExpect(jsonPath("$['Git branch']", isA(String.class)))
.andExpect(jsonPath("$['Latest commit ID']", isA(String.class)))
.andExpect(jsonPath("$['Latest commit message']", isA(String.class)));
}
}

0 comments on commit 714a212

Please sign in to comment.