Repository: incubator-sentry
Updated Branches:
  refs/heads/master 7d6390e2c -> 422a17551


SENTRY-932: TestColumnEndToEnd error check should non-case sensitive (Dapeng 
Sun, reviewed by Anne Yu)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/422a1755
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/422a1755
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/422a1755

Branch: refs/heads/master
Commit: 422a175517ad3cce3acd0213d10f9eddb24e8eff
Parents: 7d6390e
Author: Sun Dapeng <[email protected]>
Authored: Fri Dec 11 09:52:50 2015 +0800
Committer: Sun Dapeng <[email protected]>
Committed: Fri Dec 11 09:52:50 2015 +0800

----------------------------------------------------------------------
 .../apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/422a1755/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
----------------------------------------------------------------------
diff --git 
a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
 
b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
index 343048d..0fa21a2 100644
--- 
a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
+++ 
b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java
@@ -167,14 +167,14 @@ public class TestColumnEndToEnd extends 
AbstractTestWithStaticConfiguration {
       assertTrue("Sentry should not support privilege: Insert on Column", 
false);
     } catch (Exception e) {
       assertTrue("The error should be 'Sentry does not support privilege: 
Insert on Column'",
-          e.getMessage().contains("Sentry does not support privilege: Insert 
on Column"));
+          e.getMessage().toUpperCase().contains("SENTRY DOES NOT SUPPORT 
PRIVILEGE: INSERT ON COLUMN"));
     }
     try {
       statement.execute("GRANT ALL (c2) ON TABLE t1 TO ROLE user_role2");
       assertTrue("Sentry should not support privilege: ALL on Column", false);
     } catch (Exception e) {
       assertTrue("The error should be 'Sentry does not support privilege: All 
on Column'",
-          e.getMessage().contains("Sentry does not support privilege: All on 
Column"));
+          e.getMessage().toUpperCase().contains("SENTRY DOES NOT SUPPORT 
PRIVILEGE: ALL ON COLUMN"));
     }
     statement.execute("GRANT ROLE user_role1 TO GROUP " + USERGROUP1);
     statement.execute("GRANT ROLE user_role2 TO GROUP " + USERGROUP2);

Reply via email to