Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 5.0
    • Fix versions: None
    • Components: Tests
    • Labels:
      None
    • Severity:
      Build Error
    • Steps to reproduce:
      Hide
      The kernel tests try to reach out to ok.com. If the domain name cannot
      be resolved or cannot be reached via HTTP, the tests will fail:

      ```
      [ERROR] testResourceClosing(org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest) Time elapsed: 0.196 s <<< ERROR!
      org.opencastproject.security.api.TrustedHttpClientException: java.net.UnknownHostException: ok.com: Name or service not known
              at org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest.testResourceClosing(TrustedHttpClientResourceClosingTest.java:78)
      Caused by: java.net.UnknownHostException: ok.com: Name or service not known
              at org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest.testResourceClosing(TrustedHttpClientResourceClosingTest.java:78)
      ```

      This patch fixes that by connecting to the local server instead which
      was started already anyway.
      Show
      The kernel tests try to reach out to ok.com. If the domain name cannot be resolved or cannot be reached via HTTP, the tests will fail: ``` [ERROR] testResourceClosing(org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest) Time elapsed: 0.196 s <<< ERROR! org.opencastproject.security.api.TrustedHttpClientException: java.net.UnknownHostException: ok.com: Name or service not known         at org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest.testResourceClosing(TrustedHttpClientResourceClosingTest.java:78) Caused by: java.net.UnknownHostException: ok.com: Name or service not known         at org.opencastproject.kernel.security.TrustedHttpClientResourceClosingTest.testResourceClosing(TrustedHttpClientResourceClosingTest.java:78) ``` This patch fixes that by connecting to the local server instead which was started already anyway.

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              lkiesow Lars Kiesow
              Reporter:
              lkiesow Lars Kiesow
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases