test that allowed operation puts proper entry in audit log concode_field_sep Pattern successPattern concode_elem_sep MiniDFSCluster cluster concode_elem_sep String[] groups concode_elem_sep UserGroupInformation userGroupInfo concode_elem_sep Configuration conf concode_elem_sep FileSystem fs concode_elem_sep String fileName concode_elem_sep DFSTestUtil util concode_elem_sep String auditLogFile concode_elem_sep String username concode_elem_sep Pattern webOpenPattern concode_elem_sep Pattern auditPattern concode_elem_sep boolean useAsyncLog concode_elem_sep String fnames[] concode_field_sep void testAuditHftp concode_elem_sep Collection<Object[]> data concode_elem_sep void testAuditAllowedStat concode_elem_sep void testAuditWebHdfs concode_elem_sep void setupAuditLogs concode_elem_sep void verifyAuditLogs concode_elem_sep void verifyAuditLogsCheckPattern concode_elem_sep void verifyAuditLogsRepeat concode_elem_sep void configureAuditLogs concode_elem_sep void testAuditWebHdfsOpen concode_elem_sep void setupCluster concode_elem_sep void testAuditWebHdfsDenied concode_elem_sep void teardownCluster concode_elem_sep void testAuditWebHdfsStat concode_elem_sep void testAuditDenied
void function ( ) { final Path loc0 = new Path ( fnames [ 0 ] ) ; FileSystem loc1 = DFSTestUtil . getFileSystemAs ( userGroupInfo , conf ) ; setupAuditLogs ( ) ; InputStream loc2 = loc1 . open ( loc0 ) ; int loc3 = loc2 . read ( ) ; loc2 . close ( ) ; verifyAuditLogs ( true ) ; assertTrue ( "srini_string" , loc3 >= 0 ) ; }