Uploaded image for project: 'WildFly Arquillian'
  1. WildFly Arquillian
  2. WFARQ-39

ConstantPermissionMapperTestCase influeced by other test fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.1.Final, 2.2.0.Final
    • 2.1.0.Final
    • None

    Description

      ConstantPermissionMapperTestCase (testsuite/integration/elytron) fails when some other test fails before:
      After modifying SpengoMechTestCase to fail during ServerSetup (when I change path in cli.sendLine("/subsystem=elytron/kerberos-security-factory=... to filepath which does not exists), independent test ConstantPermissionMapperTestCase start to fail too because of DeploymentException.
      Reason is, ServerSetup of ConstantPermissionMapperTestCase is not started, so Deployment fails.

      Edit: the same occurs in opposite case - when ConstantPermissionMapperTestCase setup fails (for example when I change withRoleDecoder("groups-to-roles") to withRoleDecoder("groups-to-roles2")), SpengoMechTestCase's SetupTask will not run too, and tests fails on DeploymentException too (resource crated as part of setup task does not exists).

      mvn clean test -Dtest=org.wildfly.test.integration.elytron.http.SpnegoMechTestCase,org.wildfly.test.integration.elytron.permissionmappers.ConstantPermissionMapperTestCase -Dsurefire.runOrder=alphabetical
      

      As the problem is SetupTask is not started in consequences of different test SetupTask behavior (fail), this is probably wildfly-arquillian issue.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: