You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Hao Hao (JIRA)" <ji...@apache.org> on 2016/12/13 21:21:59 UTC

[jira] [Commented] (SENTRY-1565) some unit tests mistakenly use "grant create" instead of "grant all" queries

    [ https://issues.apache.org/jira/browse/SENTRY-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15746307#comment-15746307 ] 

Hao Hao commented on SENTRY-1565:
---------------------------------

[~vspector] What is the issue with using grant create? I think the tests here are specific for "create" action.

> 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
>            Assignee: Vadim Spector
>         Attachments: SENTRY-1565.001.patch
>
>
> 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)