Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-30042

Some QS integration tests on windows are failing because of mismatched LF / CRLF expectations

XMLWordPrintable

      We have an issue in integration tests within some quickstarts. 

      The issue is in that those tests are parsing response from deployed application and expect it to use OS-specific lien endings (LF on Linux, CRLF on Windows).

      Let's take for example cmt quickstart:

      The test cmt/src/test/java/org/wildfly/quickstarts/cmt/BasicRuntimeIT.java is failing when running on Windows following README instructions when using quickstarts from EAP 8.1 Beta quickstarts zip.

      The test is expecting index.html returned by server to use CRLF on Windows. To be able to do that, then during packaging of this application the cmt/src/main/webapp/index.html need to also have CRLF (server doesn't change it, it just serves what you gave it).

      Now when using quickstart from git checkout, git by default CAN (not must as it also depends on user configuration) change the line endings in files to CRLF on Windows on checkout (or to LF on Linux) and then the test works. But when using quickstart form zip, which is using line endings present in the time of zipping it up, it fails.

      We need the tests to be able to work in both scenarios (QS from git checkout or from unzipped ZIP distribution).

       

      Affected quickstarts relying on OS-specific line endings:

      batch-processing
      cmt
      ee-security
      ejb-multi-server
      ejb-throws-exception
      helloworld-singleton
      hibernate
      servlet-security

              mjusko@redhat.com Marek Jusko
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: