exceptionfactory commented on a change in pull request #4572: URL: https://github.com/apache/nifi/pull/4572#discussion_r500695248
########## File path: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestUnpackContent.java ########## @@ -221,6 +226,32 @@ public void testInvalidZip() throws IOException { } } + @Test + public void testZipEncryptionZipStandard() throws IOException { + runZipEncryptionMethod(EncryptionMethod.ZIP_STANDARD); + } + + @Test + public void testZipEncryptionAes() throws IOException { + runZipEncryptionMethod(EncryptionMethod.AES); + } + + @Test + public void testZipEncryptionNoPasswordConfigured() throws IOException { + final TestRunner runner = TestRunners.newTestRunner(new UnpackContent()); + runner.setProperty(UnpackContent.PACKAGING_FORMAT, UnpackContent.PackageFormat.ZIP_FORMAT.toString()); + + final String password = String.class.getSimpleName(); + final char[] streamPassword = password.toCharArray(); + final String contents = TestRunner.class.getCanonicalName(); + + final byte[] zipEncrypted = createZipEncrypted(EncryptionMethod.AES, streamPassword, contents); Review comment: Thanks for the confirmation. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org