This is an automated email from the ASF dual-hosted git repository.

pvillard31 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 29236d6bee2 NIFI-16371 Stabilized 
PasswordBasedPropertyEncryptionProviderTest authentication failure assertion 
(#11699)
29236d6bee2 is described below

commit 29236d6bee259dc661d95670bfdaadaa75ede9cc
Author: Joe Witt <[email protected]>
AuthorDate: Sun Sep 20 04:57:53 2026 -0700

    NIFI-16371 Stabilized PasswordBasedPropertyEncryptionProviderTest 
authentication failure assertion (#11699)
---
 .../password/PasswordBasedPropertyEncryptionProviderTest.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-password-based-property-encryption-bundle/nifi-password-based-property-encryption/src/test/java/org/apache/nifi/security/encryption/password/PasswordBasedPropertyEncryptionProviderTest.java
 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-password-based-property-encryption-bundle/nifi-password-based-property-encryption/src/test/java/org/apache/nifi/security/encryption/password/PasswordBasedPropertyEncryptionProviderTest.java
index 99178ca9bb0..dd5c310c766 100644
--- 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-password-based-property-encryption-bundle/nifi-password-based-property-encryption/src/test/java/org/apache/nifi/security/encryption/password/PasswordBasedPropertyEncryptionProviderTest.java
+++ 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-password-based-property-encryption-bundle/nifi-password-based-property-encryption/src/test/java/org/apache/nifi/security/encryption/password/PasswordBasedPropertyEncryptionProviderTest.java
@@ -123,7 +123,7 @@ class PasswordBasedPropertyEncryptionProviderTest {
     @Test
     void testDecryptAuthenticationFailed() {
         final byte[] encrypted = provider.encrypt(PROPERTY_BINARY, CONTEXT);
-        encrypted[0] = 0;
+        encrypted[0] ^= 1;
 
         assertThrows(PropertyEncryptionException.class, () -> 
provider.decrypt(encrypted, CONTEXT));
     }

Reply via email to