[jboss-jira] [JBoss JIRA] (WFLY-9757) Some jsf integration tests fail if -Dnode != localhost

Farah Juma (JIRA) issues at jboss.org
Tue Feb 13 16:58:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-9757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532705#comment-13532705 ] 

Farah Juma commented on WFLY-9757:
----------------------------------

{{DoctypeDeclTestCase#testDoctypeDeclDisallowed}} currently attempts to check that the HTTP response contains a specific error message from the stack trace when attempting to access a JSF application that contains a DOCTYPE declaration. However, when WildFly is bound to an IP address other than localhost, attempting to access a JSF application that contains a DOCTYPE declaration will result in an Internal Server Error, as expected, but the stack trace containing the error message won't be part of the HTTP response as it is when WildFly is bound to localhost. The test should be updated to just make sure an Internal Server Error occurs instead of also checking that the response string contains the error message from the stack trace.

> 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 at 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 at 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)



More information about the jboss-jira mailing list