From 0ad4a26ab6b78b8bb3123faed6fcfaff807f49f3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Oct 2019 12:36:49 +0300 Subject: Basic authentication endpoints must provide realm --- src/test/java/com/juick/server/tests/ServerTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/java/com') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index e5d39743..51be7092 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -479,7 +479,8 @@ public class ServerTests { .andExpect(status().isMovedPermanently()); mockMvc.perform(get("/api/auth")) - .andExpect(status().isUnauthorized()); + .andExpect(status().isUnauthorized()) + .andExpect(header().exists("WwW-Authenticate")); mockMvc.perform(get("/api/home")) .andExpect(status().isUnauthorized()); -- cgit v1.2.3