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

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

Commit 7f8aa88842a5063712b1f51e00e78628b8b1f1e4 in nifi's branch 
refs/heads/support/nifi-1.16 from Emilio Setiadarma
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7f8aa88842 ]

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
>             Fix For: 1.17.0, 1.16.1
>
>          Time Spent: 20m
>  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)

Reply via email to