Revert "Disable tests broken by removal of ObjectPostProcessor"

This reverts commit 4b2861fa14.
This commit is contained in:
Andy Wilkinson 2025-07-18 09:45:44 +01:00
parent ebe5d4e59d
commit 4db83bd83e
3 changed files with 0 additions and 8 deletions

View File

@ -16,7 +16,6 @@
package org.springframework.boot.security.oauth2.server.authorization.autoconfigure.servlet;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
@ -74,7 +73,6 @@ class OAuth2AuthorizationServerAutoConfigurationTests {
}
@Test
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
void registeredClientRepositoryBeanShouldBeCreatedWhenPropertiesPresent() {
this.contextRunner
.withPropertyValues(CLIENT_PREFIX + ".foo.registration.client-id=abcd",
@ -98,7 +96,6 @@ class OAuth2AuthorizationServerAutoConfigurationTests {
}
@Test
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
void registeredClientRepositoryBacksOffWhenRegisteredClientRepositoryBeanPresent() {
this.contextRunner.withUserConfiguration(TestRegisteredClientRepositoryConfiguration.class)
.withPropertyValues(CLIENT_PREFIX + ".foo.registration.client-id=abcd",

View File

@ -19,7 +19,6 @@ package org.springframework.boot.security.oauth2.server.authorization.autoconfig
import java.util.List;
import jakarta.servlet.Filter;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
@ -70,7 +69,6 @@ class OAuth2AuthorizationServerWebSecurityConfigurationTests {
private final WebApplicationContextRunner contextRunner = new WebApplicationContextRunner();
@Test
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
void webSecurityConfigurationConfiguresAuthorizationServerWithFormLogin() {
this.contextRunner.withUserConfiguration(TestOAuth2AuthorizationServerConfiguration.class)
.withPropertyValues(CLIENT_PREFIX + ".foo.registration.client-id=abcd",
@ -99,7 +97,6 @@ class OAuth2AuthorizationServerWebSecurityConfigurationTests {
}
@Test
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
void securityFilterChainsBackOffWhenSecurityFilterChainBeanPresent() {
this.contextRunner
.withUserConfiguration(TestSecurityFilterChainConfiguration.class,

View File

@ -21,7 +21,6 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@ -47,7 +46,6 @@ import org.springframework.util.MultiValueMap;
import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
class SampleOAuth2AuthorizationServerApplicationTests {
private static final ParameterizedTypeReference<Map<String, Object>> MAP_TYPE_REFERENCE = new ParameterizedTypeReference<>() {