diff --git a/app/src/test/java/uk/ac/ebi/atlas/monitoring/JsonBuildVersionControllerWIT.java b/app/src/test/java/uk/ac/ebi/atlas/monitoring/JsonBuildVersionControllerWIT.java index 4bde97a11..888766587 100644 --- a/app/src/test/java/uk/ac/ebi/atlas/monitoring/JsonBuildVersionControllerWIT.java +++ b/app/src/test/java/uk/ac/ebi/atlas/monitoring/JsonBuildVersionControllerWIT.java @@ -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))); } }