Disable tests broken by removal of ObjectPostProcessor

This can be reverted once a compatible Authorization Server snapshot
is available.

See gh-45492
This commit is contained in:
Andy Wilkinson 2025-07-04 14:58:18 +01:00
parent e3ef438d6d
commit 4b2861fa14
3 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@
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;
@ -73,6 +74,7 @@ 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",
@ -96,6 +98,7 @@ 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,6 +19,7 @@ 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;
@ -69,6 +70,7 @@ 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",
@ -97,6 +99,7 @@ class OAuth2AuthorizationServerWebSecurityConfigurationTests {
}
@Test
@Disabled("https://github.com/spring-projects/spring-security/commit/edb7a642c7747592c58d9013e178ab9595a392ed")
void securityFilterChainsBackOffWhenSecurityFilterChainBeanPresent() {
this.contextRunner
.withUserConfiguration(TestSecurityFilterChainConfiguration.class,

View File

@ -21,6 +21,7 @@ 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;
@ -46,6 +47,7 @@ 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<>() {