Farah Juma created ELY-1478:
-------------------------------
Summary: Use System.lineSeparator() when generating PEM content to avoid
issues on Windows
Key: ELY-1478
URL:
https://issues.jboss.org/browse/ELY-1478
Project: WildFly Elytron
Issue Type: Task
Components: Utils
Reporter: Farah Juma
Assignee: Farah Juma
A couple of the new tests in {{KeyStoresTestCase}} in the PR for WFCORE-3305 have started
failing recently on Windows due to newline characters not being written properly in
generated PEM files:
{code}
KeyStoresTestCase.testExportCertificatePem
java.lang.AssertionError: array lengths differed, expected.length=1068 actual.length=1050
at
org.wildfly.extension.elytron.KeyStoresTestCase.testExportCertificate(KeyStoresTestCase.java:566)
at
org.wildfly.extension.elytron.KeyStoresTestCase.testExportCertificatePem(KeyStoresTestCase.java:542)
{code}
{code}
KeyStoresTestCase.testGenerateCertificateSigningRequest
java.lang.AssertionError: array lengths differed, expected.length=782 actual.length=769
at
org.wildfly.extension.elytron.KeyStoresTestCase.testGenerateCertificateSigningRequest(KeyStoresTestCase.java:327)
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)