[
https://issues.jboss.org/browse/WFLY-9757?page=com.atlassian.jira.plugin....
]
Petr Kremensky commented on WFLY-9757:
--------------------------------------
This one doesn't seem to be environment related. DoctypeDeclTestCase Does seem to be
the one to blame, as running the other two test cases separately works fine:
{noformat}
$ mvn clean test -Dts.basic -Dts.noSmoke -Dtest=DuplicateIDIntegrationTestCase
-Dnode0=${MYIP}
Running org.jboss.as.test.integration.jsf.duplicateid.DuplicateIDIntegrationTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.596 sec - in
org.jboss.as.test.integration.jsf.duplicateid.DuplicateIDIntegrationTestCase
$ mvn clean test -Dts.basic -Dts.noSmoke -Dtest=InjectionToPhaseListenerTest
-Dnode0=${MYIP}
Running
org.jboss.as.test.integration.jsf.phaseListener.injectionTarget.InjectionToPhaseListenerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec - in
org.jboss.as.test.integration.jsf.phaseListener.injectionTarget.InjectionToPhaseListenerTest
{noformat}
{noformat}
$ mvn clean test -Dts.basic -Dts.noSmoke
-Dtest=DoctypeDeclTestCase#testDoctypeDeclDisallowed -Dnode0=${MYIP}
Running org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.74 sec <<<
FAILURE! - in org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase
testDoctypeDeclDisallowed(org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase)
Time elapsed: 1.597 sec <<< FAILURE!
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at
org.jboss.as.test.integration.jsf.doctype.DoctypeDeclTestCase.testDoctypeDeclDisallowed(DoctypeDeclTestCase.java:93)
{noformat}
register() method returns
{{<html><head><title>Error</title></head><body>Internal
Server Error</body></html>}} as a responseString in this case where
{{assertTrue(responseString.contains("disallow-doctype-decl"));}} is expected.
[~fjuma] [~jkasik] could you please take a look into this one?
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: Test Suite
Reporter: Petr Kremensky
Assignee: Adam Krajcik
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)