hello! is there an easy way to enable actuator end...
# spring
d
hello! is there an easy way to enable actuator endpoints in
WebFluxTest
? e.g. I’d like to avoid starting up the whole app using
@SpringBootTest
, e.g.
Copy code
@ExtendWith(SpringExtension::class)
@ContextConfiguration(classes = [MyRouteConfiguration::class])
@WebFluxTest
class RouteConfigurationIT(@Autowired val context: ApplicationContext) {

    private lateinit var webClient: WebTestClient

    @BeforeEach
    fun setUp() {
        webClient = WebTestClient.bindToApplicationContext(context).build()
    }

    // some tests here
}
Above works fine for testing the routes but I want to also verify that my webfilter that redirects health path to
/actuator/health
actually works. With the above setup actuator is not setup so I’m getting 404. Any ideas?