[
https://issues.apache.org/jira/browse/SLING-7950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650460#comment-16650460
]
Robert Munteanu commented on SLING-7950:
----------------------------------------
... but I get the feeling that these are caused by recent changes to the
servlets.get bundle
{noformat}[ERROR]
testNtUnstructured(org.apache.sling.launchpad.webapp.integrationtest.NodeTypeBasedRenderingTest)
Time elapsed: 0.048 s <<< FAILURE!
junit.framework.AssertionFailedError:
Content does not contain 'dumped by HtmlRendererServlet' (content=<?xml
version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"
/></head>
<body>
<h1>Resource dumped by HtmlRenderer</h1>
<p>Resource path: <b>/testing/NodeTypeBasedRenderingTest/test_7</b></p>
<p>Resource metadata: <b>{sling.modificationTime=-1,
sling.characterEncoding=null, sling.parameterMap={}, sling.contentType=null,
sling.creationTime=-1, sling.contentLength=-1,
sling.resolutionPath=/testing/NodeTypeBasedRenderingTest/test_7,
sling.resolutionPathInfo=.html}</b></p>
<p>Resource type: <b>nt:unstructured</b></p>
<p>Resource super type: <b>-</b></p>
<h2>Resource properties</h2>
<p>
jcr:primaryType: <b>nt:unstructured</b><br />
</p>
</body></html>
)
at
org.apache.sling.launchpad.webapp.integrationtest.NodeTypeBasedRenderingTest.testSpecificNodeType(NodeTypeBasedRenderingTest.java:68)
at
org.apache.sling.launchpad.webapp.integrationtest.NodeTypeBasedRenderingTest.testNtUnstructured(NodeTypeBasedRenderingTest.java:89)
{noformat}
The test is looking for _dumped by HtmlRenderer*Servlet*_ but the output
contains _dumped by HtmlRenderer_. Might be a case of an overspecifying test.
[~jebailey] - does this change in behaviour sound familiar to you?
> Fix ITs with Oak 1.8
> --------------------
>
> Key: SLING-7950
> URL: https://issues.apache.org/jira/browse/SLING-7950
> Project: Sling
> Issue Type: Sub-task
> Components: Launchpad, Oak, Testing
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Major
> Fix For: Starter 11
>
>
> Updating to Oak 1.8.7 results in the following failures:
> {noformat}[ERROR] Failures:
> [ERROR] AnonymousAccessTest.testAnonymousContent:99->assertContent:85
> Expected status 200 for
> http://localhost:41000/ANON_CAN_READ/AnonymousAccessTest/789235c4-d3b2-43b3-a163-aadb95cdd56b/test_text_789235c4_d.txt
> (content=) expected:<200> but was:<401>
> [ERROR] AnonymousAccessTest.testAnonymousContent:101 Expecting status 404
> when testing outside of anonymous access subtree expected:<404> but was:<401>
> [ERROR]
> AuthRequestLoginTest.testForcedLogin:40->HttpTestBase.getContent:419->HttpTestBase.getContent:424->HttpTestBase.getContent:432->HttpTestBase.getContent:457
> Expected status 200 for
> http://localhost:41000/system/sling/info.sessionInfo.json (content=)
> expected:<200> but was:<401>
> [ERROR] RedirectOnLogoutTest.testRedirectToResourceAfterLogout:70 Expected
> redirect expected:<302> but was:<401>
> [ERROR] Errors:
> [ERROR] DavExDisabledAnonAccessTest>DavExIntegrationTest.setUp:47 »
> NoClassDefFound or...
> [ERROR] DavExDisabledAnonAccessTest>DavExIntegrationTest.setUp:47 »
> NoClassDefFound or...
> [ERROR] DavExIntegrationTest.setUp:47 » NoClassDefFound
> org/apache/jackrabbit/webdav/c...
> [ERROR] DavExIntegrationTest.setUp:47 » NoClassDefFound
> org/apache/jackrabbit/webdav/c...
> [INFO]
> [ERROR] Tests run: 655, Failures: 4, Errors: 4, Skipped: 1{noformat}
> The changes that support this are at
> https://github.com/apache/sling-org-apache-sling-starter/tree/feature/oak-1.8
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)