add server preview tests
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m9s

This commit is contained in:
Lee 2024-04-20 19:45:54 +01:00
parent d2ae4b4cc5
commit eae027af84

@ -56,4 +56,11 @@ class ServerControllerTests {
.andExpect(status().isOk()) .andExpect(status().isOk())
.andExpect(jsonPath("$.blocked").value(false)); .andExpect(jsonPath("$.blocked").value(false));
} }
@Test
public void ensureServerPreviewLookupSuccess() throws Exception {
mockMvc.perform(get("/server/preview/java/" + testServer)
.contentType(MediaType.IMAGE_PNG))
.andExpect(status().isOk());
}
} }