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:52 UTC
[pulsar] branch remove_unsupported_test created (now f0e807c77f3)
This is an automated email from the ASF dual-hosted git repository.
mattisonchao pushed a change to branch remove_unsupported_test
in repository https://gitbox.apache.org/repos/asf/pulsar.git
at f0e807c77f3 [branch-2.9] Remove unsupported test.
This branch includes the following new commits:
new f0e807c77f3 [branch-2.9] Remove unsupported test.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[pulsar] 01/01: [branch-2.9] Remove unsupported test.
Posted by ma...@apache.org.
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();
- }
}