You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2021/12/13 18:34:00 UTC
[jira] [Updated] (NIFI-9366) nifi-persistent-provenance-repository tests create unwanted provenance_repository directory in filesystem
[ https://issues.apache.org/jira/browse/NIFI-9366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Witt updated NIFI-9366:
---------------------------
Fix Version/s: 1.15.1
> nifi-persistent-provenance-repository tests create unwanted provenance_repository directory in filesystem
> ---------------------------------------------------------------------------------------------------------
>
> Key: NIFI-9366
> URL: https://issues.apache.org/jira/browse/NIFI-9366
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.15.0
> Reporter: Chris Sampson
> Assignee: Chris Sampson
> Priority: Trivial
> Fix For: 1.16.0, 1.15.1
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Executing the tests within the {{nifi-persistent-provenance-repository}} results in an unwanted directory being created in the filesystem that could accidentally be committed to git:
> * {{nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/provenance_repository/}}
> This is caused by the Groovy-based test {{EncryptedWriteAheadProvenanceRepositoryTest#testShouldRegisterAndGetEvents}}, which doesn't override the default {{nifi.properties}} value for {{nifi.provenance.repository.directory.}} of {{provenance_repository}} - this results in the directory being created as indicated above. It would be better to locate the directory either in {{target/}} (therefore ignored by default in Git commits as part of the Maven build) or a Temp directory as done in {{#testWriteAheadProvenanceRepositoryShouldRegisterAndRetrieveEvents}} within the same Test class.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)