Santiago M. Mola created FLUME-2481:
---------------------------------------

             Summary: TestFileChannelEncryption fails with System locale other 
than en_US
                 Key: FLUME-2481
                 URL: https://issues.apache.org/jira/browse/FLUME-2481
             Project: Flume
          Issue Type: Bug
            Reporter: Santiago M. Mola
            Priority: Minor


Tests check for exception messages that are locale-dependent, so they fail when 
system locale is not en_US.


Relevant code:

      Assert.assertEquals("java.io.FileNotFoundException: /path/does/not/exist 
" +
          "(No such file or directory)", ex.getMessage().startsWith(""));


Exception:

testMissingKeyStorePasswordFile(org.apache.flume.channel.file.encryption.TestFileChannelEncryption)
  Time elapsed: 2 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<.../does/not/exist (No [such file or 
directory])> but was:<.../does/not/exist (No [existe el archivo o el 
directorio])>
        at org.junit.Assert.assertEquals(Assert.java:125)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at 
org.apache.flume.channel.file.encryption.TestFileChannelEncryption.testMissingKeyStorePasswordFile(TestFileChannelEncryption.java:325)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to