You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Santiago M. Mola (JIRA)" <ji...@apache.org> on 2014/10/01 12:30:33 UTC

[jira] [Created] (FLUME-2481) TestFileChannelEncryption fails with System locale other than en_US

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)