Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9962

ReverseProxyTestCase fails when running after ForwardedHandlerTestCase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 12.0.0.Final
    • Test Suite
    • None
    • Hide
      mvn test -pl testsuite/integration/web -Dtest=org.jboss.as.test.integration.web.handlers.ForwardedHandlerTestCase,org.jboss.as.test.integration.web.reverseproxy.ReverseProxyTestCase -Dsurefire.runOrder=alphabetical
      
      Show
      mvn test -pl testsuite/integration/web -Dtest=org.jboss.as.test.integration.web.handlers.ForwardedHandlerTestCase,org.jboss.as.test.integration.web.reverseproxy.ReverseProxyTestCase -Dsurefire.runOrder=alphabetical

      When ForwardedHandlerTestCase installs /subsystem=undertow/configuration=filter/expression-filter=ff, even through it removes it after, /proxy location defined as part of ReverseProxyTestCase setup returns error 404:

      testReverseProxy(org.jboss.as.test.integration.web.reverseproxy.ReverseProxyTestCase)  Time elapsed: 0.087 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<404>
      
      • Direct calling of /server1/name and /server2/name from the same tests gives 200 correctly.
      • When I comment out the ff filter setup (or skip whole ForwardedHandlerTestCase), ReverseProxyTestCase suceed.
      • When I copy configuration and deployments from running test and run in standalone server outside of test, proxy works correctly.

      As it is unrelated to my original issue in the end, keeping unassigned.

              jstourac@redhat.com Jan Stourac
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: