-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
theme: testingIssues related to testingIssues related to testingtype: enhancementA general enhancementA general enhancement
Milestone
Description
Hi.
In testing codes that applied spring-security, I felt the need for a secure flag.
Checking WebTestClientAutoConfiguration, I could see that customizing is possible by WebTestClientBuilderCustomizer. However, since WebTestClient.Builder.configureClient() has already been called, So I couldn't apply MockServerConfigurer that provided by spring-security.
If possible, it would be best to enable or disable the security option via the secure flag like @AutoConfigureMockMvc. If that's not possible, at least add logic to apply MockServerConfigurer beans.
aheritier
Metadata
Metadata
Assignees
Labels
theme: testingIssues related to testingIssues related to testingtype: enhancementA general enhancementA general enhancement