You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/10/01 21:27:38 UTC
[GitHub] [geode] mhansonp commented on a change in pull request #6927: GEODE-9663: throw and handle AuthenticationExpiredException at login time
mhansonp commented on a change in pull request #6927:
URL: https://github.com/apache/geode/pull/6927#discussion_r720546806
##########
File path: geode-core/src/test/java/org/apache/geode/cache/client/internal/AuthenticateUserOpTest.java
##########
@@ -82,4 +92,54 @@ public void constructorWithProperties() throws Exception {
verify(impl).getCredentialBytes(eq(connection), captor.capture());
assertThat(captor.getValue()).isEqualTo(properties);
}
+
+ @Test
+ public void noAttempt_if_NotRequireCredentials() throws Exception {
+ when(server.getRequiresCredentials()).thenReturn(false);
+ impl.attempt(connection);
+ verify(impl, never()).parentAttempt(connection);
+ }
+
+ @Test
+ public void callPrentAttempt_IfRequireCredentials() throws Exception {
Review comment:
spelling parent
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@geode.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org