[
https://issues.apache.org/jira/browse/SLING-3599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14179778#comment-14179778
]
Bertrand Delacretaz commented on SLING-3599:
--------------------------------------------
It looks like the ResourceEventListener [1] doesn't get any OSGi events that
should be emitted when CommonTests.testOsgiResourceEvents [2] creates nodes
under /
Here's how to reproduce this failure on sling trunk revision 1633585:
* Do a full build of the Sling trunk
* Apply the below patch
* export MAVEN_OPTS="-Xmx1G -XX:MaxPermSize=256m "
* mvn clean install -pl bundles/jcr/it-jackrabbit-oak,bundles/jcr/oak-server
-Dit.test=OakRepositoryIT
The version of Oak used by the tests is defined by the oak.version property in
both bundles/jcr/it-jackrabbit-oak/pom.xml and bundles/jcr/oak-server/pom.xml
{code}
Index:
bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java
===================================================================
---
bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java
(revision 1633585)
+++
bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java
(working copy)
@@ -49,7 +49,6 @@
import org.apache.sling.api.SlingConstants;
import org.apache.sling.jcr.api.SlingRepository;
import org.junit.After;
-import org.junit.Ignore;
import org.junit.Test;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
@@ -341,7 +340,6 @@
}
@Test
- @Ignore("SLING-3599 - doesn't work with Oak yet")
public void testOsgiResourceEvents() throws RepositoryException {
final ResourceEventListener listener = new ResourceEventListener();
final ServiceRegistration reg = listener.register(bundleContext,
SlingConstants.TOPIC_RESOURCE_ADDED);
{code}
[1]
https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java
[2]
https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/ResourceEventListener.java
> OakRepositoryIT.testOsgiResourceEvents fails with Oak 1.0
> ---------------------------------------------------------
>
> Key: SLING-3599
> URL: https://issues.apache.org/jira/browse/SLING-3599
> Project: Sling
> Issue Type: Bug
> Components: Oak
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
>
> For now I have disabled that test in
> bundles/jcr/it-jackrabbit-oak/src/test/java/org/apache/sling/jcr/repository/it/CommonTests.java
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)