mirror of https://github.com/apache/nifi.git
NIFI-1267: TestListFile attempts to ensure that files that are not readable are skipped but the assumptions made are not valid if running as root; removed this check, since it is not reliable
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
9524f63766
commit
0c7617b686
|
@ -473,17 +473,6 @@ public class TestListFile {
|
||||||
runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS);
|
runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS);
|
||||||
final List<MockFlowFile> successFiles1 = runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS);
|
final List<MockFlowFile> successFiles1 = runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS);
|
||||||
assertEquals(3, successFiles1.size());
|
assertEquals(3, successFiles1.size());
|
||||||
|
|
||||||
// make file2 unreadable and test (setReadable() does not work on Windows)
|
|
||||||
if (!System.getProperty("os.name").toLowerCase().startsWith("windows")) {
|
|
||||||
assertTrue(file2.setReadable(false));
|
|
||||||
runner.clearTransferState();
|
|
||||||
runner.setProperty(ListFile.RECURSE, "false");
|
|
||||||
runner.run();
|
|
||||||
runner.assertAllFlowFilesTransferred(ListFile.REL_SUCCESS);
|
|
||||||
final List<MockFlowFile> successFiles2 = runner.getFlowFilesForRelationship(ListFile.REL_SUCCESS);
|
|
||||||
assertEquals(2, successFiles2.size());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue