From 51ef7c5b5fb9621d63219d3e83d43f67a58900bb Mon Sep 17 00:00:00 2001 From: jarno Date: Sat, 12 Oct 2024 23:41:49 +0200 Subject: [PATCH] FIX: now permit all so ci/cd tests will succeed --- .../com/wiemanboy/wiemanapi/config/TestSecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java b/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java index 1c038eb..f043188 100644 --- a/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java +++ b/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java @@ -18,8 +18,8 @@ public JwtDecoder jwtDecoder() { } @Bean - public SecurityFilterChain configure(HttpSecurity http) throws Exception { - return mock(SecurityFilterChain.class); + public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { + return http.authorizeHttpRequests(authorize -> authorize.anyRequest().permitAll()).build(); } @Bean