Greetings NiFi dev:

I'm getting unit test failures trying to build the master branch.

[INFO]
------------------------------------------------------------------------
[INFO] Building nifi-runtime 1.8.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ nifi-runtime
---
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.nifi.NiFiGroovyTest
[ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
1.037 s <<< FAILURE! - in org.apache.nifi.NiFiGroovyTest
[ERROR]
testInitializePropertiesShouldSetBootstrapKeyFromFile(org.apache.nifi.NiFiGroovyTest)
Time elapsed: 0.121 s  <<< ERROR!
java.lang.IllegalArgumentException: There was an issue decrypting protected
properties
at
org.apache.nifi.NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile(NiFiGroovyTest.groovy:166)
Caused by: org.apache.nifi.properties.SensitivePropertyProtectionException:
The key must be a valid hexadecimal key
at
org.apache.nifi.NiFiGroovyTest.testInitializePropertiesShouldSetBootstrapKeyFromFile(NiFiGroovyTest.groovy:166)

$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T16:41:47+00:00)
Maven home: /opt/apache-maven-3.3.9
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /opt/jdk1.8.0_144/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-1062-aws", arch: "amd64", family: "unix"

I believe this is related to NIFI-5341 which turned on the NiFiGroovyTest
in nifi-framework/nifi-runtime. That unit test tries to decrypt a
aes/gcm/256 protected value from nifi.propertes.  My Oracle JDK does not
have Unlimited Strength JCE policy files installed.  If I install the JCE
policy files, then the unit test passes.

Should we rework this unit test to use aes/gcm/128 crypto so that someone
without the JCE policy files can build and run unit tests?

Thanks,
-- Mike

Reply via email to