Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2496

Testcase failure due to environment specific line.separator value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0
    • tests
    • Windows

    Description

      The "line.separator" returns operating system specific line separator. The following testcase uses hard coded "\n" while comparing the return values in the assertion, which makes them to fail on the windows environment.

      org.apache.oozie.client.TestOozieCLI#testOozieStatus
      org.apache.oozie.client.TestOozieCLI#testServerBuildVersion
      org.apache.oozie.client.TestOozieCLI#testClientBuildVersion
      

      In the following testcase, we are using "line.separator" where as TimestampedMessageParser sends the logs after appending "\n".

      org.apache.oozie.util.TestXLogUserFilterParam#testloglevel_DEBUF_INFO
      org.apache.oozie.util.TestXLogUserFilterParam#testloglevel_Error
      org.apache.oozie.util.TestXLogUserFilterParam#testTextSearch
      

      Attachments

        1. OOZIE-2496-01.patch
          4 kB
          Abhishek Bafna
        2. OOZIE-2496-02.patch
          5 kB
          Abhishek Bafna
        3. OOZIE-2496-03.patch
          5 kB
          Abhishek Bafna

        Issue Links

          Activity

            People

              abhishekbafna Abhishek Bafna
              abhishekbafna Abhishek Bafna
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: