Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/578#discussion_r99898177
  
    --- Diff: 
exec/java-exec/src/test/java/org/apache/drill/exec/rpc/user/security/TestCustomUserAuthenticator.java
 ---
    @@ -56,16 +68,27 @@ public void positiveUserAuth() throws Exception {
         runTest(TEST_USER_2, TEST_USER_2_PASSWORD);
       }
     
    -
       @Test
       public void negativeUserAuth() throws Exception {
         negativeAuthHelper(TEST_USER_1, "blah.. blah..");
         negativeAuthHelper(TEST_USER_2, "blah.. blah..");
    -    negativeAuthHelper(TEST_USER_2, "");
         negativeAuthHelper("invalidUserName", "blah.. blah..");
       }
     
       @Test
    +  public void emptyPassword() throws Exception {
    +    try {
    +      runTest(TEST_USER_2, "");
    +      fail("Expected an exception.");
    +    } catch (RpcException e) {
    +      final String exMsg = e.getMessage();
    +      assertThat(exMsg, containsString("Insufficient credentials"));
    --- End diff --
    
    Not part of Kerberos testing, I just followed how the tests were written 
previously.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to