mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-03 01:02:34 +00:00
Add Test
Issue gh-13660
This commit is contained in:
parent
4d6ff49b9d
commit
ed6ff670d1
@ -141,7 +141,7 @@ public final class ObservationFilterChainDecorator implements FilterChainProxy.F
|
||||
|
||||
static final class ObservationFilter implements Filter {
|
||||
|
||||
private static final Map<String, String> OBSERVATION_NAMES = new HashMap<>();
|
||||
static final Map<String, String> OBSERVATION_NAMES = new HashMap<>();
|
||||
|
||||
static {
|
||||
OBSERVATION_NAMES.put("DisableEncodeUrlFilter", "session.urlencoding");
|
||||
|
@ -150,6 +150,13 @@ public class ObservationFilterChainDecoratorTests {
|
||||
.isEqualTo(expectedFilterNameTag);
|
||||
}
|
||||
|
||||
// gh-13660
|
||||
@Test
|
||||
void observationNamesDoNotContainDashes() {
|
||||
ObservationFilterChainDecorator.ObservationFilter.OBSERVATION_NAMES.values()
|
||||
.forEach((name) -> assertThat(name).doesNotContain("-"));
|
||||
}
|
||||
|
||||
static Stream<Arguments> decorateFiltersWhenCompletesThenHasSpringSecurityReachedFilterNameTag() {
|
||||
Filter filterWithName = new BasicAuthenticationFilter();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user