Эх сурвалжийг харах

Revert "Temporarily disable failing tests"

This reverts commit 4638e1e428ee2ddab234199eb3b67b9c94dfa08b.
Marcus Da Coregio 2 жил өмнө
parent
commit
e53ce64d9e

+ 1 - 1
reactive/webflux/kotlin/hello-security/src/test/kotlin/example/KotlinWebfluxApplicationTests.kt

@@ -53,7 +53,7 @@ class KotlinWebfluxApplicationTests {
             .expectHeader().valueEquals("Location", "/log-in")
     }
 
-//    @Test
+    @Test
     @WithMockUser
     fun `protected page can be accessed when authenticated`() {
         this.rest.get()

+ 1 - 1
servlet/spring-boot/kotlin/hello-security/src/test/kotlin/org/springframework/security/samples/KotlinApplicationTests.kt

@@ -67,7 +67,7 @@ class KotlinApplicationTests {
                 .andExpect(status().is3xxRedirection)
     }
 
-//    @Test
+    @Test
     fun `logged in user can access protected page`() {
         val mvcResult = this.mockMvc.perform(formLogin("/log-in").user("user").password("password"))
                 .andExpect(authenticated()).andReturn()