If I pull the latest openmrs-core master branch and run
mvn clean install
the following test fails:
Tests in error:
SecurityTest.encrypt_shouldEncryptShortAndLongText:190 » API No encryption sec…
-------------------------------------------------------------------------------
Test set: org.openmrs.util.SecurityTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.198 sec <<< FAILURE! - in org.openmrs.util.SecurityTest
encrypt_shouldEncryptShortAndLongText(org.openmrs.util.SecurityTest) Time elapsed: 0.006 sec <<< ERROR!
org.openmrs.api.APIException: No encryption secret key found
at org.openmrs.util.Security.getSavedSecretKey(Security.java:335)
at org.openmrs.util.Security.encrypt(Security.java:244)
at org.openmrs.util.SecurityTest.encrypt_shouldEncryptShortAndLongText(SecurityTest.java:190)
Has anyone seen this test failure? (I am running on Mac OS). How do I fix it? Thanks.
mvn test -DfailIfNoTests=false -Dtest=SecurityTest
-------------------------------------------------------
T E S T S
-------------------------------------------------------
objc[18129]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/bin/java (0x1056704c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1056f44e0). One of the two will be used. Which one is undefined.
Running org.openmrs.util.SecurityTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.498 sec - in org.openmrs.util.SecurityTest
Results :
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0