You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Satya Deep Maheshwari <co...@gmail.com> on 2015/05/15 08:46:18 UTC

Failing SlingWebDavServletTest integration test

Hi

I have synced code from trunk and am trying to
execute SlingWebDavServletTest without any local changes. This test is
failing with the error below:

SlingWebDavServletTest.testHandlerOrder:73->checkHandler:90->RenderingTestBase.assertContains:36
Content does not contain 'test-io-handler-1-' (content=<?xml version="1.0"
encoding="UTF-8" standalone="no"?><D:multistatus
xmlns:D="DAV:"><D:response><D:href>
http://localhost:8080/dav//sling-test/SlingWebDavServletTest1431671407506/test-io-handler-1
</D:href><D:propstat><D:prop><D:displayname>test-io-handler-1</D:displayname><D:creationdate>2015-05-15T06:30:09Z</D:creationdate><jcr:lastModifiedBy
xmlns:jcr="http://www.jcp.org/jcr/1.0">admin</jcr:lastModifiedBy><D:iscollection>0</D:iscollection><D:resourcetype/><D:lockdiscovery/><D:getcontenttype>application/octet-stream</D:getcontenttype><D:getetag>"10-1431671409942"</D:getetag><D:getlastmodified>Fri,
15 May 2015 06:30:09
GMT</D:getlastmodified><D:supportedlock><D:lockentry><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getcontentlength>10</D:getcontentlength></D:prop><D:status>HTTP/1.1
200 OK</D:status></D:propstat></D:response></D:multistatus>)

The cause is simple. The result is expected to contain 'test-io-handler-1-'
while actually it contains just 'test-io-handler-1' . Notice the extra
hyphen '-' in the expectation. This extra hyphen is specifically added by
the method SlingWebDavServletTest.getHandlerIdentifier . I am not sure, why
is this method needed.

Any ideas as to why is this failing? Is it failing just for me? The test
hasn't changed for the last 4 years.

Regards
Satya Deep

Re: Failing SlingWebDavServletTest integration test

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Fri, May 15, 2015 at 8:46 AM, Satya Deep Maheshwari
<co...@gmail.com> wrote:
> ...Any ideas as to why is this failing? Is it failing just for me?..

That test is passing on Jenkins, [1] - that's java 1.7 but AFAICS it
also passes for 1.8.

-Bertrand

[1] https://builds.apache.org/view/S-Z/view/Sling/job/sling-trunk-1.7/1823/org.apache.sling$org.apache.sling.launchpad.testing/testReport/org.apache.sling.launchpad.webapp.integrationtest/SlingWebDavServletTest/