Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 60E05200BAF for ; Mon, 31 Oct 2016 11:01:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5F73B160B05; Mon, 31 Oct 2016 10:01:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A7138160AF0 for ; Mon, 31 Oct 2016 11:01:15 +0100 (CET) Received: (qmail 5368 invoked by uid 500); 31 Oct 2016 10:01:14 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 5359 invoked by uid 99); 31 Oct 2016 10:01:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2016 10:01:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 72BA91A048C for ; Mon, 31 Oct 2016 10:01:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id t_DWpxK8KEdT for ; Mon, 31 Oct 2016 10:01:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B387D5FC80 for ; Mon, 31 Oct 2016 10:01:09 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9BF8AE0444 for ; Mon, 31 Oct 2016 10:01:08 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id EDF1A3A1A7B for ; Mon, 31 Oct 2016 10:01:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1767234 - in /sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it: BundleInstallBlackListTest.java OsgiInstallerTestBase.java Date: Mon, 31 Oct 2016 10:01:07 -0000 To: commits@sling.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161031100107.EDF1A3A1A7B@svn01-us-west.apache.org> archived-at: Mon, 31 Oct 2016 10:01:16 -0000 Author: cziegeler Date: Mon Oct 31 10:01:07 2016 New Revision: 1767234 URL: http://svn.apache.org/viewvc?rev=1767234&view=rev Log: SLING-5779 : Packaged OSGi config intermittently do not get installed before bundle start Modified: sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/BundleInstallBlackListTest.java sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java Modified: sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/BundleInstallBlackListTest.java URL: http://svn.apache.org/viewvc/sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/BundleInstallBlackListTest.java?rev=1767234&r1=1767233&r2=1767234&view=diff ============================================================================== --- sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/BundleInstallBlackListTest.java (original) +++ sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/BundleInstallBlackListTest.java Mon Oct 31 10:01:07 2016 @@ -36,6 +36,11 @@ public class BundleInstallBlackListTest final String symbolicName = "osgi-installer-testbundle"; + @Override + protected String requiredServices() { + return ""; + } + @org.ops4j.pax.exam.Configuration public Option[] config() { return defaultConfiguration(); @@ -152,18 +157,10 @@ public class BundleInstallBlackListTest private void updateInstallerBundle() throws BundleException { // wait a little bit for updating bundle - try { - Thread.sleep(2000); - } catch (InterruptedException e) { - // ignore - } + sleep(2000); bundleContext.getServiceReference(OsgiInstaller.class).getBundle().update(); // wait a little bit after updating bundle - try { - Thread.sleep(2000); - } catch (InterruptedException e) { - // ignore - } + sleep(2000); setupInstaller(); } Modified: sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java URL: http://svn.apache.org/viewvc/sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java?rev=1767234&r1=1767233&r2=1767234&view=diff ============================================================================== --- sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java (original) +++ sling/trunk/installer/it/src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java Mon Oct 31 10:01:07 2016 @@ -19,6 +19,7 @@ package org.apache.sling.installer.it; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; +import static org.ops4j.pax.exam.CoreOptions.frameworkProperty; import static org.ops4j.pax.exam.CoreOptions.junitBundles; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; import static org.ops4j.pax.exam.CoreOptions.options; @@ -475,6 +476,10 @@ public class OsgiInstallerTestBase imple log.log(level, msg); } + protected String requiredServices() { + return "resourcetransformer:org.osgi.service.cm,installtaskfactory:org.osgi.service.cm"; + } + protected Option[] defaultConfiguration() { String vmOpt = "-Dosgi.installer.testing"; @@ -503,6 +508,7 @@ public class OsgiInstallerTestBase imple systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepo) ), systemProperty( "org.ops4j.pax.logging.DefaultServiceLog.level" ).value(paxDebugLevel), + frameworkProperty("sling.installer.requiredservices").value(requiredServices()), provision( mavenBundle("org.apache.sling", "org.apache.sling.commons.log", "4.0.6"), mavenBundle("org.apache.sling", "org.apache.sling.commons.logservice", "1.0.6"),