Fix server tests failing
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m30s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m30s
This commit is contained in:
parent
f01c208a9b
commit
6d112ac658
@ -80,12 +80,12 @@ public final class ServerControllerTests {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
void ensureBedrockServerLookupSuccess() throws Exception {
|
void ensureBedrockServerLookupSuccess() throws Exception {
|
||||||
mockMvc.perform(get("/server/bedrock/gateway.wildnetwork.net")
|
mockMvc.perform(get("/server/bedrock/wildprison.bedrock.minehut.gg")
|
||||||
.accept(MediaType.APPLICATION_JSON) // Accept JSON
|
.accept(MediaType.APPLICATION_JSON) // Accept JSON
|
||||||
.contentType(MediaType.APPLICATION_JSON) // Content type is JSON
|
.contentType(MediaType.APPLICATION_JSON) // Content type is JSON
|
||||||
).andExpect(status().isOk()) // Expect 200 (OK)
|
).andExpect(status().isOk()) // Expect 200 (OK)
|
||||||
.andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname
|
.andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname
|
||||||
.value("gateway.wildnetwork.net")
|
.value("wildprison.bedrock.minehut.gg")
|
||||||
).andReturn();
|
).andReturn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user