Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15521

ConfigFileSystemHandlerTest fails on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: unittest
    • Labels:
    • Target Version/s:
    • Rank:
      1|hzz7on:

      Description

      Bug description

      The ConfigFileSystemHandlerTest unit test fails on Windows when it's testing the replacement of the am.data.dir variable using the commons placeholder approach.
      This looks to happen because windows paths are using backslashes as opposed to forward slashes.
      This is likely a product bug.
      Example failure:

      java.lang.AssertionError: 
      Expecting:
        <{"placeholder-port-string"="C:UsersaldarisAppDataLocalTemp1570399030845", "test"="value"}>
      to contain value:
        <"C:\Users\aldaris\AppData\Local\Temp\1570399030845">
      
      	at org.forgerock.openam.sm.file.ConfigFileSystemHandlerTest.<cuppa test>(ConfigFileSystemHandlerTest.java:233)
      

      How to reproduce the issue

      Run the unit test on Windows

      Expected behaviour

      It passes

      Current behaviour

      It fails.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kajetan.hemzaczek Kajetan Hemzaczek
                Reporter:
                peter.major Peter Major [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: