drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudheeshkatkam <...@git.apache.org>
Subject [GitHub] drill pull request #578: DRILL-4280: Kerberos Authentication
Date Tue, 07 Feb 2017 18:51:21 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message