Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF0E1185B8 for ; Wed, 6 Jan 2016 21:36:06 +0000 (UTC) Received: (qmail 99676 invoked by uid 500); 6 Jan 2016 21:36:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 99635 invoked by uid 500); 6 Jan 2016 21:36:06 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 99622 invoked by uid 99); 6 Jan 2016 21:36:06 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 21:36:06 +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 BBDDC1A08D0 for ; Wed, 6 Jan 2016 21:36:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pronoia-solutions-com.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id uxkETf8aM-rF for ; Wed, 6 Jan 2016 21:35:55 +0000 (UTC) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0F24842AA9 for ; Wed, 6 Jan 2016 21:35:55 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id ba1so310415073obb.3 for ; Wed, 06 Jan 2016 13:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pronoia-solutions-com.20150623.gappssmtp.com; s=20150623; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=cBVuGB+o8cm8wGrc113701Kww8tPL6cP4+LQfRtyMIQ=; b=yXwoELhYzauUxuxfsyk5PHdRhDYTS31Mc0GuwwKZGSkZmyLm4malzO2vCMH0yyQJZB BuyV0VB2Ri+oMXwEvgi31UeZMQtGiNeSdrXyk3In4kQqASRDDAIDK7Y/lxHv1577YK/W ipvgCudiP7Cr5hmXyVEV3sSneYxruKk4n5+r0ZOELg8larOxDCNQ4JKNCEqALwa7MQ6b A5tVT/tO6Rnrll2A5PIXMcOyNb8fq6w6yYYf7UbQEzcqTMVghUT7S55d4G+g8bzSzREq PXVPRO/YCURvsN5SJPmmyRZ3U2imko7/X2bW57rtnJQ6gAp6gO9o1RuTLJrs8pnEt/Qr 2kwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=cBVuGB+o8cm8wGrc113701Kww8tPL6cP4+LQfRtyMIQ=; b=lOfwViTWeMoIpiKmcuFXd9umsYUCkelOmw4f7167RUc9bvPsiXROn3Qjleh5srEYxO uNpoXJUwfJe83389plUlePxF178V4kPlXGa2HrtEpBqpQMzPCH6XBJh6qmll6DWPcHvD p9fL/BF7aOjyZQZaAATEe4pTkcoOPig6dz6aA4Udgt2cr/TQ4RkC0SpZnERuQdFaKGmg J2BiqZgZtfR81preLn6Rm6jv/U8/xvqi76cP+mpDZYcxKPLSutIdCJ4DgoxpyTyRWuVM Ja+AkEV5FzGQBaL/6oz8fhMNdM1ONgpmO/8AMptxMxWofRuLfXyg4X08hi5486nm+s/4 pxSA== X-Gm-Message-State: ALoCoQmLEAQSTBNDdw4pHnYGXOEYRo2k1RS5G1XcYVsb8wQbonaSSLafsAcZX+OXkKcR/N4w1Y/gi9rIiXd3Ey1DGZU+IYAXog== X-Received: by 10.182.53.233 with SMTP id e9mr24483118obp.46.1452116154546; Wed, 06 Jan 2016 13:35:54 -0800 (PST) Received: from macpro.pronoia.local (c-24-10-239-245.hsd1.ut.comcast.net. [24.10.239.245]) by smtp.gmail.com with ESMTPSA id s3sm39735609obf.29.2016.01.06.13.35.53 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jan 2016 13:35:54 -0800 (PST) From: Quinn Stevenson Content-Type: multipart/alternative; boundary="Apple-Mail=_485C4BE3-522F-4054-9561-4AE9FE7BEAFA" Message-Id: <92F068F3-5964-4446-9F0D-D08980C342EB@pronoia-solutions.com> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Potential Bug in CamelBlueprintTestSupport Date: Wed, 6 Jan 2016 14:35:49 -0700 References: To: dev@camel.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3112) --Apple-Mail=_485C4BE3-522F-4054-9561-4AE9FE7BEAFA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Grzegorz - Thank you for the link - I=E2=80=99ve read through it many times - it is = very very helpful. =46rom what I understand, this should work - the = location of the blueprint file shouldn=E2=80=99t effect the way the test = runs, should it? Maybe I=E2=80=99m missing something simple. It looks like my unit test attachment didn=E2=80=99t come through. Sorry = - I didn=E2=80=99t think about the mailing list filtering out = attachments. You can get to the test here = https://github.com/hqstevenson/camel-blueprint-test-properties.git = =20 I've been testing this primary against 2.17-SNAPSHOT, but I=E2=80=99ve = tested against several versions. The POM for the unit test has the = versions listed that I tested, but I was messing with the test a little = so I=E2=80=99m not sure the list is completely accurate. I=E2=80=99ll = verify those and update the POM if needed. Quinn Stevenson > On Jan 6, 2016, at 12:21 PM, Grzegorz Grzybek = wrote: >=20 > Hello Quinn >=20 > What Camel version do you use? I wrote a thorough explanation of > CamelTestBlueprint and the changes we've made to how tests are > performed and synchronized. > Here: = http://ggrzybek.blogspot.com/2015/12/camel-blueprint-test-support.html > You can find there links to JIRA issues describing exactly the same > problems you have with `update-strategy=3D"reload"`. >=20 > best regards > Grzegorz Grzybek >=20 > 2016-01-06 19:16 GMT+01:00 Quinn Stevenson = : >> I=E2=80=99ve encountered an issue, but I=E2=80=99m not sure if this = is a bug or a user error. >>=20 >> I=E2=80=99m trying to write some tests using = CamelBlueprintTestSupport for bundles where the blueprint file is in = src/main/resources/OSGI-INF/blueprint. However, I=E2=80=99m getting = random failures in the test on startup. >>=20 >> I=E2=80=99ve narrowed it down to using update-strategy =3D = =E2=80=9Creload=E2=80=9D and overriding properties in the test. The = tests fail (most of the time) when the actual blueprint file is in = src/main/resources/OSGI-INF/blueprint. Even when the test doesn=E2=80=99t= fail, you=E2=80=99ll see multiple camel contexts get created during the = test, while the test this is based on from camel-test-blueprint only = creates two camel contexts. >>=20 >> However, if I move the blueprint file to = src/test/resources/OSGI-INF/blueprint, the test passes. >>=20 >> Since I need the blueprint packaged in the bundle in = OSGI-INF/blueprint, I can=E2=80=99t move the blueprint file to the = src/test/=E2=80=A6 area. >>=20 >> Is there another way I should be testing this sort of thing? >>=20 >> I=E2=80=99ve created a unit test based on the = ConfigAdminLoadConfigurationFileAndOverrideTest from the = camel-test-blueprint module that demonstrates the issue. >>=20 >>=20 >>=20 >>=20 >> Quinn Stevenson >>=20 >>=20 >>=20 >>=20 --Apple-Mail=_485C4BE3-522F-4054-9561-4AE9FE7BEAFA--