[ 
https://issues.apache.org/jira/browse/NIFI-14099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930371#comment-17930371
 ] 

ASF subversion and git services commented on NIFI-14099:
--------------------------------------------------------

Commit d018675373b982b6d5e6d55cf4eec708d87b9c24 in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d018675373 ]

NIFI-14099 Adjusted GetHDFSTest to use TempDir for test files

- Copying files from test resources to TempDir avoids failures based on file 
creation timestamps

This closes #9743.

Signed-off-by: Mark Bathori <[email protected]>


> GetHDFSTest Fails on based on test file timestamps
> --------------------------------------------------
>
>                 Key: NIFI-14099
>                 URL: https://issues.apache.org/jira/browse/NIFI-14099
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The GetHDFSTest class has several methods that can fail based on the 
> timestamp of the files in the testdata resources directory. This can occur 
> when attempting to build from a new source release bundle due to the 
> timestamps on test files.
> {noformat}
> [ERROR]   GetHDFSTest.testAutomaticDecompression:166 expected: <1> but was: 
> <0>
> [ERROR]   GetHDFSTest.testDirectoryUsesValidEL:223 expected: <1> but was: <0>
> [ERROR]   GetHDFSTest.testFileExtensionNotACompressionCodec:204 expected: <1> 
> but was: <0>
> [ERROR]   GetHDFSTest.testGetFilesWithFilter:138 expected: <4> but was: <0>
> [ERROR]   GetHDFSTest.testInferCompressionCodecDisabled:185 expected: <1> but 
> was: <0>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to