You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ma...@apache.org on 2022/08/29 05:38:53 UTC
[pulsar] 01/01: [branch-2.9] Remove unsupported test.
This is an automated email from the ASF dual-hosted git repository.
mattisonchao pushed a commit to branch remove_unsupported_test
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit f0e807c77f3e59039c850d3dcc3187e987c4e7c9
Author: mattisonchao <ma...@apache.org>
AuthorDate: Mon Aug 29 13:38:24 2022 +0800
[branch-2.9] Remove unsupported test.
---
.../org/apache/pulsar/broker/service/ServerCnxTest.java | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ServerCnxTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ServerCnxTest.java
index 8edda7761c7..814e81cb399 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ServerCnxTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ServerCnxTest.java
@@ -1962,21 +1962,4 @@ public class ServerCnxTest {
}
}
- @Test
- public void testHandleAuthResponseWithoutClientVersion() {
- ServerCnx cnx = mock(ServerCnx.class, CALLS_REAL_METHODS);
- CommandAuthResponse authResponse = mock(CommandAuthResponse.class);
- org.apache.pulsar.common.api.proto.AuthData authData = mock(org.apache.pulsar.common.api.proto.AuthData.class);
- when(authResponse.getResponse()).thenReturn(authData);
- when(authResponse.hasResponse()).thenReturn(true);
- when(authResponse.getResponse().hasAuthMethodName()).thenReturn(true);
- when(authResponse.getResponse().hasAuthData()).thenReturn(true);
- when(authResponse.hasClientVersion()).thenReturn(false);
- try {
- cnx.handleAuthResponse(authResponse);
- } catch (Exception ignore) {
- }
- verify(authResponse, times(1)).hasClientVersion();
- verify(authResponse, times(0)).getClientVersion();
- }
}