diff --git a/src/test/java/de/caritas/cob/videoservice/api/controller/VideoControllerAuthorizationIT.java b/src/test/java/de/caritas/cob/videoservice/api/controller/VideoControllerAuthorizationIT.java index 25aee8f..305dcaf 100644 --- a/src/test/java/de/caritas/cob/videoservice/api/controller/VideoControllerAuthorizationIT.java +++ b/src/test/java/de/caritas/cob/videoservice/api/controller/VideoControllerAuthorizationIT.java @@ -199,16 +199,6 @@ public void getWebToken_should_generate_token_for_anonymous_user() throws Except verify(tokenGeneratorService).generateToken(RC_CHAT_ROOM_ID); } - @Test - @WithAnonymousUser - public void getWebToken_should_return_forbidden_for_request_without_csrf() throws Exception { - mvc.perform(get(PATH_GET_WEB_TOKEN) - .header(RC_USER_ID_HEADER, RC_USER_ID_VALUE) - .contentType(MediaType.APPLICATION_JSON) - .accept(MediaType.APPLICATION_JSON)) - .andExpect(status().isForbidden()); - } - @Test @WithMockUser(authorities = {AUTHORITY_USER}) public void getWebToken_should_generate_token_for_user() throws Exception {