-
Notifications
You must be signed in to change notification settings - Fork 2.9k
NIFI-15387 Re-enabled tests TestFetchFile, TestListFile and TestPutFile to run on Windows. #10690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…th Linux and Windows.
…ing last modified time.
exceptionfactory
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @dan-s1. It looks like at least one test is failing on Windows with the current changes, it seems like the message pattern needs to be simplified to avoid the tight coupling to the message.
TestListFile.testFilterPathPattern:653->assertVerificationOutcome:945 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>
|
@exceptionfactory I am not sure that is the problem as that message works on all the other boxes but for Windows. I think there is something with the filter logic on windows when the filter path is on pattern subdir2 (which is the last part of test |
Yes, it does appear to be an issue with the directory pattern matching on Windows. I'm fine with disabling only that particular test on Windows. It is probably worth creating a new Jira issue to review that particular test method more closely if you are unable to find a satisfactory solution for this particular pull request. |
|
@exceptionfactory |
I would include a reason indicating an apparent filter mismatch or something along those lines, but it is fine to leave out a reason if you prefer. |
Summary
NIFI-15387
Re-enabled nine out of eleven tests in TestFetchFile, thirteen out of eighteen in TestListFile and eight of nine tests in TestPutFile to run on Windows. Also for the disabled test
testNonReadableFileinStandardFileResourceServiceTestspecified a disabled reason as it is the same reason for disablingtestPutFileinTestPutFile. In addition, I also followed some of the Intellij suggestions for cleaning up the code.Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation