Skip to content

Commit

Permalink
HIVE-7317 : authorization_explain.q fails when run in sequence (Navis…
Browse files Browse the repository at this point in the history
… reviewed by Thejas M Nair)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1609023 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
navis committed Jul 9, 2014
1 parent 9a4b04f commit 751125c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ql/src/test/queries/clientpositive/authorization_9.q
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ grant select on table dummy to user hive_test_user2;
grant select (key, value) on table dummy to user hive_test_user2;

show grant on all;

revoke select on database default from user hive_test_user;
revoke select on table dummy from user hive_test_user;
revoke select (key, value) on table dummy from user hive_test_user;

revoke select on database default from user hive_test_user2;
revoke select on table dummy from user hive_test_user2;
revoke select (key, value) on table dummy from user hive_test_user2;
32 changes: 32 additions & 0 deletions ql/src/test/results/clientpositive/authorization_9.q.out
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,35 @@ default dummy key hive_test_user USER Select false -1 hive_test_user
default dummy key hive_test_user2 USER Select false -1 hive_test_user
default dummy value hive_test_user USER Select false -1 hive_test_user
default dummy value hive_test_user2 USER Select false -1 hive_test_user
PREHOOK: query: revoke select on database default from user hive_test_user
PREHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: query: revoke select on database default from user hive_test_user
POSTHOOK: type: REVOKE_PRIVILEGE
PREHOOK: query: revoke select on table dummy from user hive_test_user
PREHOOK: type: REVOKE_PRIVILEGE
PREHOOK: Output: default@dummy
POSTHOOK: query: revoke select on table dummy from user hive_test_user
POSTHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: Output: default@dummy
PREHOOK: query: revoke select (key, value) on table dummy from user hive_test_user
PREHOOK: type: REVOKE_PRIVILEGE
PREHOOK: Output: default@dummy
POSTHOOK: query: revoke select (key, value) on table dummy from user hive_test_user
POSTHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: Output: default@dummy
PREHOOK: query: revoke select on database default from user hive_test_user2
PREHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: query: revoke select on database default from user hive_test_user2
POSTHOOK: type: REVOKE_PRIVILEGE
PREHOOK: query: revoke select on table dummy from user hive_test_user2
PREHOOK: type: REVOKE_PRIVILEGE
PREHOOK: Output: default@dummy
POSTHOOK: query: revoke select on table dummy from user hive_test_user2
POSTHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: Output: default@dummy
PREHOOK: query: revoke select (key, value) on table dummy from user hive_test_user2
PREHOOK: type: REVOKE_PRIVILEGE
PREHOOK: Output: default@dummy
POSTHOOK: query: revoke select (key, value) on table dummy from user hive_test_user2
POSTHOOK: type: REVOKE_PRIVILEGE
POSTHOOK: Output: default@dummy

0 comments on commit 751125c

Please sign in to comment.