Skip to content

NIFI-10407 Improve reliability of GetSmbFileTest#6346

Closed
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10407
Closed

NIFI-10407 Improve reliability of GetSmbFileTest#6346
exceptionfactory wants to merge 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10407

Conversation

@exceptionfactory
Copy link
Contributor

Summary

NIFI-10407 Improves the reliability of GetSmbFileTest.testBatchSize() using TestRunner.run() with settings to avoid stopping the processor and clearing the internal queue between invocations within the test method. Additional changes include updating Mockito references to use annotations for mocked objects and introducing lenient expectations for some file operations.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 8
    • JDK 11
    • JDK 17

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

- Changed TestRunner.run() to avoid clearing internal cache between runs
- Updated Mockito usage with annotations
@thenatog
Copy link
Contributor

thenatog commented Sep 1, 2022

Will review

@thenatog
Copy link
Contributor

thenatog commented Sep 1, 2022

+1 will merge.

@thenatog thenatog closed this in c19d6a0 Sep 1, 2022
@greyp9 greyp9 requested review from greyp9 and removed request for greyp9 September 6, 2022 14:52
p-kimberley pushed a commit to p-kimberley/nifi that referenced this pull request Oct 15, 2022
- Changed TestRunner.run() to avoid clearing internal cache between runs
- Updated Mockito usage with annotations

Signed-off-by: Nathan Gough <thenatog@gmail.com>

This closes apache#6346.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants