[JBoss JIRA] (WFLY-9807) ConstantPermissionMapperTestCase influeced by other test fail
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/WFLY-9807?page=com.atlassian.jira.plugin.... ]
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)
8 years, 2 months
[JBoss JIRA] (WFLY-9757) Some jsf integration tests fail if -Dnode != localhost
by Farah Juma (JIRA)
[ https://issues.jboss.org/browse/WFLY-9757?page=com.atlassian.jira.plugin.... ]
Farah Juma commented on WFLY-9757:
----------------------------------
Thanks very much, [~pkremens]! I'm able to reproduce it now using your steps.
> Some jsf integration tests fail if -Dnode != localhost
> ------------------------------------------------------
>
> Key: WFLY-9757
> URL: https://issues.jboss.org/browse/WFLY-9757
> Project: WildFly
> Issue Type: Bug
> Components: JSF, Test Suite
> Reporter: Petr Kremensky
> Assignee: Farah Juma
> Attachments: org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase-output.txt
>
>
> Running the tests keeping a node0 to localhost works fine:
> {noformat}
> [pkremens@localhost testsuite] (master)$ mvn test -Dts.basic -Dts.noSmoke -Dtest=DoctypeDeclTestCase,DuplicateIDIntegrationTestCase,InjectionToPhaseListenerTest
> ...
> Running org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.809 sec - in org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase
> Running org.jboss.as.test.integration.jsf.duplicateid.DuplicateIDIntegrationTestCase
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.645 sec - in org.jboss.as.test.integration.jsf.duplicateid.DuplicateIDIntegrationTestCase
> Running org.jboss.as.test.integration.jsf.phaseListener.injectionTarget.InjectionToPhaseListenerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.1 sec - in org.jboss.as.test.integration.jsf.phaseListener.injectionTarget.InjectionToPhaseListenerTest
> {noformat}
> But once node0 is set, the tests start to fail.
> {noformat}
> [pkremens@localhost testsuite] (master)$ mvn test -Dts.basic -Dts.noSmoke -Dtest=DoctypeDeclTestCase,DuplicateIDIntegrationTestCase,InjectionToPhaseListenerTest -Dnode0=<IP>
> ...
> Failed tests:
> DoctypeDeclTestCase.testDoctypeDeclDisallowed:93
> DuplicateIDIntegrationTestCase.testDuplicateIDIsNotGenerated:107 expected:<200> but was:<500>
> Tests in error:
> InjectionToPhaseListenerTest.test:61 » IO java.util.concurrent.ExecutionExcept...
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-9821) SingletonProvider may be incorrectly initialized with RegistrySingletonProvider
by Martin Kouba (JIRA)
Martin Kouba created WFLY-9821:
----------------------------------
Summary: SingletonProvider may be incorrectly initialized with RegistrySingletonProvider
Key: WFLY-9821
URL: https://issues.jboss.org/browse/WFLY-9821
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 11.0.0.Final
Reporter: Martin Kouba
Assignee: Martin Kouba
If a non-CDI deployment (contains no beans.xml nor a bean with a bean defining annotation nor a session bean) attempts to access the CDI container using {{CDI.current()}} before {{TCCLSingletonService}} is started (and {{org.jboss.weld.bootstrap.api.SingletonProvider}} initialized with {{ModuleGroupSingletonProvider}}) then {{SingletonProvider}} is incorrectly initialized with the default impl ({{RegistrySingletonProvider}}). As a result,
subsequent CDI deployment fail with {{java.lang.RuntimeException: SingletonProvider is already initialized...}}.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months