From 813179931ad714662c25c906280fd9c7e54d137f Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Mon, 5 Dec 2022 11:13:15 -0700 Subject: [PATCH] Disable Some R2dbc Tests Issue gh-12339 --- .../R2dbcReactiveOAuth2AuthorizedClientServiceTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/R2dbcReactiveOAuth2AuthorizedClientServiceTests.java b/oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/R2dbcReactiveOAuth2AuthorizedClientServiceTests.java index c865f302efc..e1bd9b3eed0 100644 --- a/oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/R2dbcReactiveOAuth2AuthorizedClientServiceTests.java +++ b/oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/R2dbcReactiveOAuth2AuthorizedClientServiceTests.java @@ -25,6 +25,7 @@ import io.r2dbc.spi.ConnectionFactory; import io.r2dbc.spi.Result; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -114,12 +115,14 @@ public void loadAuthorizedClientWhenPrincipalNameIsNullThenThrowIllegalArgumentE } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void loadAuthorizedClientWhenDoesNotExistThenReturnNull() { this.authorizedClientService.loadAuthorizedClient("registration-not-found", "principalName") .as(StepVerifier::create).expectNextCount(0).verifyComplete(); } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void loadAuthorizedClientWhenExistsThenReturnAuthorizedClient() { Authentication principal = createPrincipal(); OAuth2AuthorizedClient expected = createAuthorizedClient(principal, this.clientRegistration); @@ -150,6 +153,7 @@ public void loadAuthorizedClientWhenExistsThenReturnAuthorizedClient() { } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void loadAuthorizedClientWhenExistsButNotFoundInClientRegistrationRepositoryThenThrowDataRetrievalFailureException() { given(this.clientRegistrationRepository.findByRegistrationId(any())).willReturn(Mono.empty()); Authentication principal = createPrincipal(); @@ -186,6 +190,7 @@ public void saveAuthorizedClientWhenPrincipalIsNullThenThrowIllegalArgumentExcep } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void saveAuthorizedClientWhenSaveThenLoadReturnsSaved() { Authentication principal = createPrincipal(); final OAuth2AuthorizedClient expected = createAuthorizedClient(principal, this.clientRegistration); @@ -244,6 +249,7 @@ public void saveAuthorizedClientWhenSaveThenLoadReturnsSaved() { } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void saveAuthorizedClientWhenSaveClientWithExistingPrimaryKeyThenUpdate() { // Given a saved authorized client Authentication principal = createPrincipal(); @@ -297,6 +303,7 @@ public void removeAuthorizedClientWhenPrincipalNameIsNullThenThrowIllegalArgumen } @Test + @Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved public void removeAuthorizedClientWhenExistsThenRemoved() { Authentication principal = createPrincipal(); OAuth2AuthorizedClient authorizedClient = createAuthorizedClient(principal, this.clientRegistration);