Daniel Stieglitz created NIFI-15412:
---------------------------------------
Summary: Enable test testFilterPathPattern in TestListFile on
Windows
Key: NIFI-15412
URL: https://issues.apache.org/jira/browse/NIFI-15412
Project: Apache NiFi
Issue Type: Improvement
Reporter: Daniel Stieglitz
In NIFI-15387 test testFilterPathPattern in TestListFile was disabled on
Windows. The stack trace when running on Windows was
{code:java}
Error: org.apache.nifi.processors.standard.TestListFile.testFilterPathPattern
-- Time elapsed: 0.480 s <<< FAILURE! org.opentest4j.AssertionFailedError:
Expected verification result to match pattern [Successfully listed .* Found 4
objects. Of those, 1 matches the filter.]. Actual explanation was: Successfully
listed contents of Local Directory
[D:\a\nifi\nifi\nifi-extension-bundles\nifi-standard-bundle\nifi-standard-processors\target\test\data\in].
Found 4 objects. Of those, 0 match the filter. ==> expected: <true> but was:
<false> at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:158)
at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:139)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:69) at
org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:41) at
org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:228) at
org.apache.nifi.processors.standard.TestListFile.assertVerificationOutcome(TestListFile.java:945)
at
org.apache.nifi.processors.standard.TestListFile.testFilterPathPattern(TestListFile.java:653)
{code}
It appeared the fact that it failed with the last assertion of the test that
there is some sort filter logic that does not work on Windows when the filter
path is on pattern subdir2.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)