I tried to upgrade my sample to Spring Boot 2.1.0.RELEASE, the PostControllerTest which used @WebFluxTest failed due to Spring Security protection. But in the initial version(Spring Boot 2.0.0.M7) it worked.
I tried to upgrade my sample to Spring Boot 2.1.0.RELEASE, the PostControllerTest which used @WebFluxTest failed due to Spring Security protection. But in the initial version(Spring Boot 2.0.0.M7) it worked.
This is the expected behavior as of Spring Boot 2.1.0. It's been implemented in spring-boot#13632 and a similar issue has been raised already about this. We're aligning with the behavior of Spring MVC auto-configuration here.
You can learn how to improve your test configuration in the Spring Security documentation.