Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1166

SCR does not rebind ConfigurationAdmin service in Sling jcrinstall tests

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      I'm testing the Sling jcrinstall module using Pax Exam, and the SCR reference shown below is not rebound after stopping and restarting the org.apache.felix.configadmin bundle, and waiting up to 5 seconds.

      The reference is declared like this in the OsgiControllerImpl class:

      /** @scr.reference cardinality="0..1" policy="dynamic" */
      private ConfigurationAdmin configAdmin;

      To reproduce, apply the attached patch to revision 776315 of http://svn.apache.org/repos/asf/incubator/sling/trunk/contrib/extensions/jcrinstall, and run the tests with mvn clean install.

      The OsgiControllerTest.testDeferredConfigInstall test then fails, because the ConfigurationAdmin service is not rebound to the OsgiControllerImpl class, after waiting up to 5 seconds for that to happen.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fmeschbe Felix Meschberger
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment