[
https://issues.apache.org/jira/browse/FLUME-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Santiago M. Mola updated FLUME-2481:
------------------------------------
Attachment: FLUME-2481-0.patch
> 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
> Affects Versions: v1.5.0.1
> Reporter: Santiago M. Mola
> Priority: Minor
> Fix For: v1.6.0
>
> Attachments: FLUME-2481-0.patch
>
>
> 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)