@Override
  public void checkPrivileges(HiveOperationType hiveOpType, List<HivePrivilegeObject> inputHObjs,
      List<HivePrivilegeObject> outputHObjs, HiveAuthzContext context) throws HiveAuthzPluginException,
      HiveAccessControlException {
    outputHivePrivilegeObjects("inputHObjs:", inputHObjs);
    outputHivePrivilegeObjects("outputHObjs:", outputHObjs);
    switch (hiveOpType) {
    case DFS:
    case SET:
      // allow SET and DFS commands to be used during testing
      return;
    default:
      super.checkPrivileges(hiveOpType, filterForBypass(inputHObjs), filterForBypass(outputHObjs), context);
    }

  }
Extends SQLStdHiveAuthorizationValidator to relax the restriction of not
being able to run dfs,set commands. To be used for testing purposes only!

In addition, it parses a setting test.hive.authz.sstd.validator.bypassObjTypes
as a comma-separated list of object types, which, if present, it will bypass
validations of all input and output objects of those types.
itests/util/src/main/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidatorForTest.java