[Geoserver-devel] test failures in WMS module (master branch)

Hi,
I’m having test failures on the master branch in the WMS module:

Tests run: 36, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.253 sec <<< FAILURE!
testGroupWorkspaceQualified(org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest) Time elapsed: 25 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[image/png]> but was:<[text/xml]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest.testGroupWorkspaceQualified(GetMapIntegrationTest.java:499)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Running org.geoserver.wms.wms_1_1_1.GetStylesIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.552 sec
Running org.geoserver.wms.wms_1_1_1.LayerGroupWorkspaceTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.016 sec
Running org.geoserver.wms.wms_1_1_1.LayerWorkspaceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.602 sec
Running org.geoserver.wms.wms_1_1_1.SLDWithInlineFeatureTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
Running org.geoserver.wms.wms_1_1_1.WMSCascadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.904 sec
Running org.geoserver.wms.wms_1_3.CapabilitiesAuthorityURLAndIdentifierTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.713 sec
Running org.geoserver.wms.wms_1_3.CapabilitiesBBOXForEachCRSTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.613 sec
Running org.geoserver.wms.wms_1_3.CapabilitiesIntegrationTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.813 sec
Running org.geoserver.wms.wms_1_3.CapabilitiesSystemTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.466 sec
Running org.geoserver.wms.wms_1_3.CustomDimensionsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.751 sec
Running org.geoserver.wms.wms_1_3.DimensionsRasterCapabilitiesTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.224 sec
Running org.geoserver.wms.wms_1_3.DimensionsVectorCapabilitiesTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.716 sec
Running org.geoserver.wms.wms_1_3.GetFeatureInfoIntegrationTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.591 sec
Running org.geoserver.wms.wms_1_3.GetMapIntegrationTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.802 sec
Running org.geoserver.wms.wms_1_3.LayerGroupWorkspaceTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.047 sec
Running org.geoserver.wms.wms_1_3.LayerWorkspaceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec
Running org.geoserver.wms.wms_1_3.WMSCascadeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.568 sec

Results :

Failed tests: testGroupWorkspaceQualified(org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest): expected:<[image/png]> but was:<[text/xml]>

Tests in error:
testBlueLake(org.geoserver.wms.map.GIFMapResponseTest): Rendering process failed
testBlueLake(org.geoserver.wms.map.RenderedImageMapOutputFormatTest): Rendering process failed

Tests run: 545, Failures: 1, Errors: 2, Skipped: 0


$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: /opt/apache-maven-3.0.5
Java version: 1.6.0_35, vendor: Sun Microsystems Inc.
Java home: /usr/share/java/jdk1.6.0_35/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “3.2.0-52-generic-pae”, arch: “i386”, family: “unix”

My build script:

$ cat …/…/build.sh
MAVEN_OPTS=‘-Xms384M -Xmx512M -XX:MaxPermSize=256M’
mvn clean install -DdownloadSources=true -DdownloadJavadocs=true -Declipse.addVersionToProjectName=true -e

Cheers,
Carlo

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Oct 11, 2013 at 7:15 PM, carlo cancellieri <
carlo.cancellieri@anonymised.com> wrote:

Hi,
I'm having test failures on the master branch in the WMS module:

Tests run: 36, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.253 sec
<<< FAILURE!
testGroupWorkspaceQualified(org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest)
Time elapsed: 25 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[image/png]> but was:<[text/xml]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)

It means a service exception got thrown.
Given that the build works on the official Linux Build server, on the JDK 7
build server, and the Windows build server too,
it seems something tied to your specific enviroment, and there it should be
debugged.

Hmm... wondering if the failure might be tied to out of date geotools jars,
we had had issues in the past with people trying
to build only geoserver locally because they get old snapshot jars
occasionally (but never managed to figure out why).

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------