[jboss-jira] [JBoss JIRA] (WFLY-9807) ConstantPermissionMapperTestCase influeced by other test fail

Jan Kalina (JIRA) issues at jboss.org
Tue Feb 13 13:23:00 EST 2018


     [ https://issues.jboss.org/browse/WFLY-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Kalina updated WFLY-9807:
-----------------------------
    Description: 
ConstantPermissionMapperTestCase 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), 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).
{code}
mvn clean test -Dtest=org.wildfly.test.integration.elytron.http.SpnegoMechTestCase,org.wildfly.test.integration.elytron.permissionmappers.ConstantPermissionMapperTestCase -Dsurefire.runOrder=alphabetical
{code}

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

  was:
ConstantPermissionMapperTestCase fails when some other test fails before:

After modifying SpengoMechTestCase to fail during ServerSetup, ConstantPermissionMapperTestCase start to fail too.



> ConstantPermissionMapperTestCase influeced by other test fail
> -------------------------------------------------------------
>
>                 Key: WFLY-9807
>                 URL: https://issues.jboss.org/browse/WFLY-9807
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 11.0.0.Final
>            Reporter: Jan Kalina
>            Assignee: Jan Kalina
>
> ConstantPermissionMapperTestCase 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), 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).
> {code}
> mvn clean test -Dtest=org.wildfly.test.integration.elytron.http.SpnegoMechTestCase,org.wildfly.test.integration.elytron.permissionmappers.ConstantPermissionMapperTestCase -Dsurefire.runOrder=alphabetical
> {code}
> As the problem is SetupTask is not started in consequences of different test SetupTask behavior (fail), this is probably arquillian or wildfly-arquillian issue.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list