Vadim Spector created SENTRY-1565:
-------------------------------------

             Summary: some unit tests mistakenly use "grant create" instead of 
"grant all" queries
                 Key: SENTRY-1565
                 URL: https://issues.apache.org/jira/browse/SENTRY-1565
             Project: Sentry
          Issue Type: Bug
            Reporter: Vadim Spector


Specific offenders:

sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role1");
sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role2");
sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role3");
sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbPrivilegeCleanupOnDrop.java:
    // For rename, grant CREATE to DB1
sentry-tests/sentry-tests-hive-v2/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbPrivilegeCleanupOnDrop.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE user_role");
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role1");
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role2");
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE 
user_role3");
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestDbPrivilegeCleanupOnDrop.java:
    statement.execute("GRANT CREATE ON DATABASE " + DB1 + " TO ROLE user_role");




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to