memgraph/tests/integration/auth
Marin Tomic f6a56db19e Small cleanup of auth queries
Summary:
Changed GRANT ROLE to SET ROLE. Now it is `SET ROLE FOR user TO ROLE` instead of `GRANT ROLE role TO user`. It makes more sense because our users can only have 1 role.

Changed REVOKE ROLE to CLEAR ROLE. Now it is `CLEAR ROLE FOR user` instead of `REVOKE ROLE role FOR user`. REVOKE ROLE would throw exception if user was not a member of role. CLEAR ROLE clears the role whatever it is. I find that the latter makes more sense combined with SET ROLE.

Changed `SHOW ROLE FOR USER user` to `SHOW ROLE FOR user`.

Changed `SHOW USERS FOR ROLE role` to `SHOW USERS FOR role`.

Reviewers: mferencevic, teon.banek, buda

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1572
2018-08-29 10:07:55 +02:00
..
checker.cpp Small cleanup of auth queries 2018-08-29 10:07:55 +02:00
CMakeLists.txt Integrate auth checks into query execution 2018-08-22 11:44:09 +02:00
runner.py Small cleanup of auth queries 2018-08-29 10:07:55 +02:00
tester.cpp Integrate auth checks into query execution 2018-08-22 11:44:09 +02:00