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

VirtualHostTestCase.testDefaultHost fails if not binded to localhost

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.1.0.DR7
    • Test Suite
    • None

      org.wildfly.test.integration.web.VirtualHostTestCase.testDefaultHost test fails in case that -Dnode0 property is set (localhost by default).

      @Test
      public void testDefaultHost() throws IOException {
          callAndTest("http://localhost:8080/", "ROOT"); //this needs to be localhost, as it is by host mapping
      }
      

      reproduce

      ./integration-tests.sh -Dts.basic -Dts.noSmoke -Dtest=VirtualHostTestCase -Dnode0=$MYTESTIP_1
      
      Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.391 sec <<< FAILURE! - in org.wildfly.test.integration.web.VirtualHostTestCase
      testDefaultHost(org.wildfly.test.integration.web.VirtualHostTestCase)  Time elapsed: 0.011 sec  <<< ERROR!
      org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused
      

              tomazcerar Tomaž Cerar (Inactive)
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: