Repository navigation
M7, ports part 1: connections, authentication and client options - #48
Merged
Merged
Conversation
Java V5's tests of connections, authentication and the client's options that had no Rust counterpart, ported (PLAN.md, M7; tests/PORTING.md follows in its own PR): a refreshed credential sent without reconnecting, a stale challenge round ignored, a refresh starting the challenge rounds over, a socket closed while the credential is fetched, fresh auth data only for a refresh, the provider released when the client closes, a provider that failed asked again for the next connection, and the builder refusing an https:// service URL and incomplete options. Only test code changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Java V5 tests of connections, authentication and the client's options, ported (
PLAN.md, M7:tests/PORTING.mdshows the Java scenarios in scope covered; that file follows in its own PR). Only test code changes.ClientCnxAsyncAuthTest.refreshRepublishesCredentialWithoutDisconnecttests.rs::token_authentication_and_refresh(extended: a second refresh, oneCONNECT)ClientCnxAsyncAuthTest.staleRoundCompletionIsIgnoredtests/driver.rs::a_refresh_supersedes_one_still_pendingClientCnxAsyncAuthTest.refreshResetsChallengeRoundCounterconnection.rs::a_refresh_starts_the_challenge_rounds_overClientCnxAsyncAuthTest.continuationAfterChannelCloseDoesNotWritetests/driver.rs::a_socket_closed_while_the_credential_is_fetched_fails_the_connection(Rust may write theCONNECTand learn of the close from the read: the connection fails withConnect, and nothing hangs)BinaryAuthenticationExchangeTest(4)tests/driver.rs::only_a_refresh_is_answered_with_fresh_auth_data, testkitconnection.rs::only_the_refresh_sentinel_asks_for_fresh_credentialsClientAuthenticationLifecycleTest.closingTheClientClosesAV5NativePlugintests.rs::closing_the_client_releases_its_authentication_providerAuthInitializationRetryTest.anImmediatelyFailedInitializationIsRetriedOnTheNextConnectiontests/driver.rs::a_provider_that_failed_is_asked_again_for_the_next_connectionPulsarClientBuilderV5Test.testRejectsHttpsWithGuidancelookup.rs::service_urls(extended)PulsarClientBuilderV5Test.testRejectsNullAndBlanktests/options.rs::the_builder_refuses_incomplete_or_contradictory_options(extended)Not ported here:
ClientCnxAsyncAuthTest.connectWriteFailureFailsConnectionFutureWithWriteCause: nothing makes a loopback write fail.AuthMetricsTest: the client records no metrics yet.connectCredentialFailureClosesChannelWithoutThrowing,asyncConnectCredentialFailureFailsConnectionFutureWithMappedCause): already covered bytests/driver.rs::a_failing_authentication_provider_is_an_authentication_failure, from the error-model audit (M7 audit, part 1: the error model #38).Testing
cargo fmt;clippy -D warningswith Rust 1.100. No library code changes.