private void allowSelectInDb(String dbName, String userName) throws Exception {
        driver.run("grant select on database " + dbName + " to user " + userName);
    }
TestMetastoreClientSideAuthorizationProvider : Simple base test for Metastore client side
Authorization Providers. By default, tests DefaultHiveAuthorizationProvider
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/TestMetastoreClientSideAuthorizationProvider.java