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

ASF GitHub Bot commented on NIFI-3836:
--------------------------------------

Github user jfrazee commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1865#discussion_r118769414
  
    --- Diff: 
nifi-commons/nifi-data-provenance-utils/src/test/groovy/org/apache/nifi/provenance/CryptoUtilsTest.groovy
 ---
    @@ -88,6 +88,11 @@ class CryptoUtilsTest {
             Cipher.getMaxAllowedKeyLength("AES") > 128
         }
     
    +    private static boolean isRootUser() {
    +        Process p = Runtime.getRuntime().exec("id -u")
    +        p.exitValue() == 0
    --- End diff --
    
    Isn't this just going to be true whenever `id -u` succeeds?


> CryptoUtilsTest testShouldNotValidateUnreadableFileBasedKeyProvider test 
> failure on Docker maven:latest
> -------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3836
>                 URL: https://issues.apache.org/jira/browse/NIFI-3836
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.2.0, 1.3.0
>         Environment: maven:latest (b5ab9b7ecf5a) on Docker for Mac 
> 17.03.1-ce-mac5 (16048)
>            Reporter: Joey Frazee
>            Assignee: Andy LoPresto
>            Priority: Minor
>              Labels: permissions, test
>
> Running `mvn clean install` on Docker consistently fails with:
> {code}
> Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.65 sec <<< 
> FAILURE! - in org.apache.nifi.provenance.CryptoUtilsTest
> testShouldNotValidateUnreadableFileBasedKeyProvider(org.apache.nifi.provenance.CryptoUtilsTest)
>   Time elapsed: 0.111 sec  <<< FAILURE!
> org.codehaus.groovy.runtime.powerassert.PowerAssertionError: assert 
> !unreadableKeyProviderIsValid
>        ||
>        |true
>        false
>       at 
> org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:402)
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650)
>       at 
> org.apache.nifi.provenance.CryptoUtilsTest.testShouldNotValidateUnreadableFileBasedKeyProvider(CryptoUtilsTest.groovy:214)
> Running org.apache.nifi.provenance.AESProvenanceEventEncryptorTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.285 sec - 
> in org.apache.nifi.provenance.AESProvenanceEventEncryptorTest
> Results :
> Failed tests: 
>   CryptoUtilsTest.testShouldNotValidateUnreadableFileBasedKeyProvider:214 
> assert !unreadableKeyProviderIsValid
>        ||
>        |true
>        false
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to