@Test
public void testDropRole() {
TDropSentryRoleRequest request = new TDropSentryRoleRequest();
TDropSentryRoleResponse response = new TDropSentryRoleResponse();
request.setRequestorUserName(TEST_USER_NAME);
request.setRoleName(TEST_ROLE_NAME);
response.setStatus(Status.OK());
GMAuditMetadataLogEntity amle = (GMAuditMetadataLogEntity) JsonLogEntityFactory
.getInstance().createJsonLogEntity(request, response, conf);
assertCommon(amle, Constants.TRUE, Constants.OPERATION_DROP_ROLE, "DROP ROLE testRole",
Constants.OBJECT_TYPE_ROLE, new HashMap<String, String>());
response.setStatus(Status.InvalidInput("", null));
amle = (GMAuditMetadataLogEntity) JsonLogEntityFactory.getInstance().createJsonLogEntity(
request, response, conf);
assertCommon(amle, Constants.FALSE, Constants.OPERATION_DROP_ROLE, "DROP ROLE testRole",
Constants.OBJECT_TYPE_ROLE, new HashMap<String, String>());
}