[
https://issues.apache.org/jira/browse/NIFI-9841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17513558#comment-17513558
]
ASF subversion and git services commented on NIFI-9841:
-------------------------------------------------------
Commit 9566d3fa786c074491096009da075f26d7188bde in nifi's branch
refs/heads/main from Emilio Setiadarma
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=9566d3f ]
NIFI-9841 Improved Encryptor test reliability
- Changed expected exception to ProcessException in KeyedEncryptorGroovyTest
and PasswordBasedEncryptorGroovyTest to avoid intermittent failures
This closes #5911
Signed-off-by: David Handermann <[email protected]>
> Intermittent Failures in PasswordBasedEncryptorGroovyTest
> ---------------------------------------------------------
>
> Key: NIFI-9841
> URL: https://issues.apache.org/jira/browse/NIFI-9841
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Reporter: David Handermann
> Assignee: Emilio Setiadarma
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The {{PasswordBasedEncryptorGroovyTest}} has methods can occasionally fail
> when evaluating for a particular exception.
> {noformat}
> Error:
> org.apache.nifi.security.util.crypto.PasswordBasedEncryptorGroovyTest.testDecryptShouldHandleCipherStreamMissingSaltDelimiter
> Time elapsed: 0.482 s <<< FAILURE!
> org.codehaus.groovy.runtime.powerassert.PowerAssertionError:
> assert exception.getCause() instanceof BytePatternNotFoundException
> | | |
> | null false
> org.apache.nifi.stream.io.exception.BytePatternNotFoundException: Did
> not encounter any byte pattern that was expected; data does not appear to be
> in the expected format
> at
> org.apache.nifi.security.util.crypto.PasswordBasedEncryptorGroovyTest.testDecryptShouldHandleCipherStreamMissingSaltDelimiter(PasswordBasedEncryptorGroovyTest.groovy:584)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)