diff options
author | Vitaly Takmazov | 2019-10-01 12:36:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-10-01 12:36:49 +0300 |
commit | 0ad4a26ab6b78b8bb3123faed6fcfaff807f49f3 (patch) | |
tree | d51cc828cb110f09ea6df059bea1c934f45807ce /src/test/java/com/juick/server/tests/ServerTests.java | |
parent | a63cb2c7621994f1b631968b6657c8ea23ebf233 (diff) |
Basic authentication endpoints must provide realm
Diffstat (limited to 'src/test/java/com/juick/server/tests/ServerTests.java')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
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()); |