Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1678

Some tests do not respect value of 'default.server.address' property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.0.Final
    • 2.0.29.Final
    • Core, Servlet
    • None
    • Hide

      Based on the content in /etc/hosts

      $ cat /etc/hosts 
      127.0.0.1		localhost.localdomain localhost
      ::1		localhost6.localdomain6 localhost6
      

      define value of the default.server.address:

      mvn clean install -fae -Ddefault.server.address=localhost.localdomain -DfailIfNoTests=false -Dtest=RequestPathTestCase.java,RedirectTestCase.java,ProxyHandlerXForwardedForTestCase.java,HttpServerExchangeTestCase.java
      
      Show
      Based on the content in /etc/hosts $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 define value of the default.server.address : mvn clean install -fae -Ddefault.server.address=localhost.localdomain -DfailIfNoTests= false -Dtest=RequestPathTestCase.java,RedirectTestCase.java,ProxyHandlerXForwardedForTestCase.java,HttpServerExchangeTestCase.java

    Description

      Some tests in the testsuite don't respect value of the default.server.address property that is read by io.undertow.testutils.DefaultServer#getHostAddress(). As such, in case that one configures this property to some value that matches actual hostname of the machine, these tests simply fail as they continues to expect localhost value in assertions.

      Note: this is only tests issue. Not functional.

      Attachments

        Issue Links

          Activity

            People

              jstourac@redhat.com Jan Stourac
              jstourac@redhat.com Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: