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

DistributableTestCase fails if tests run in certain order

XMLWordPrintable

      org.jboss.as.test.clustering.cluster.web.ClusteredWebSimpleTestCase fails in case that these three clustering tests run in specific order:
      1. NonHaWebSessionPersistenceTestCase
      2. BasicAuthenticationWebFailoverTestCase
      3. ClusteredWebSimpleTestCase

      See e.g. https://url.corp.redhat.com/8bcc666

      I setup a test branch which can be used to reproduce the issue (tests are renamed, run ordered, other profiles and tests were removed):
      https://github.com/pkremens/wildfly/tree/clustering-order

      git clone https://github.com/pkremens/wildfly.git -b clustering-order
      cd wildfly
      ./build.sh -DskipTests
      ./integration-tests.sh -Dts.noSmoke -Dts.clustering
      

      Fails with:

      testGracefulServeOnUndeploy(org.jboss.as.test.clustering.cluster.web.AClusteredWebSimpleTestCase)  Time elapsed: 10.34 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.jboss.as.arquillian.container.ServerSetupObserver.handleAfterUndeploy(ServerSetupObserver.java:161)
      ...
      testGracefulServeOnShutdown(org.jboss.as.test.clustering.cluster.web.AClusteredWebSimpleTestCase)  Time elapsed: 0.617 sec  <<< ERROR!
      org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: distributable.war
      	at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83)
      	at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:64)
      ...
      

      Note I renamed ClusteredWebSimpleTestCase to AClusteredWebSimpleTestCase and moved BasicAuthenticationWebFailoverTestCase to web package to get the required test order.

      Reverting https://github.com/wildfly/wildfly/pull/5693 can be used to workaround this.

              rhn-engineering-rhusar Radoslav Husar
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: