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 91F26200D3E for ; Thu, 16 Nov 2017 15:49:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90F28160BE6; Thu, 16 Nov 2017 14:49:30 +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 DF2E2160BE5 for ; Thu, 16 Nov 2017 15:49:29 +0100 (CET) Received: (qmail 4882 invoked by uid 500); 16 Nov 2017 14:49:28 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 4861 invoked by uid 99); 16 Nov 2017 14:49:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2017 14:49:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9827BC55E6 for ; Thu, 16 Nov 2017 14:49:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=ravenpack-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Czzw3H36Pl8i for ; Thu, 16 Nov 2017 14:49:26 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DFF9B60E3F for ; Thu, 16 Nov 2017 14:49:25 +0000 (UTC) Received: by mail-oi0-f45.google.com with SMTP id y206so17278730oiy.4 for ; Thu, 16 Nov 2017 06:49:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravenpack-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OpAH9rtwwp6s08JiTMp7hlePtG7oyYRNUgmx6J7G2cQ=; b=jqiThASNBPBOEv9Nk7HqYru4L57oAz0qirZd8VoY8oeQSupK12hyiE7qOFMUKOBhit Gkb29LTU++nszJ8WQ3Y/LDNhFrIDN78OmUzMcChR7kzKZkSb8BSwzm9qinUT406SuQKW SZf1rDnlJf7046hIwgfl2jR4jCeurHTiTL8u52GJfIElAv1ebP6ZZfQihNMntowgiLRd zb2IxM3J8CapVJA9/X6LNQjiOhKOmgGuXpYzwC9AccjFOuuUxxHbjxn8prGlMnvoqaf9 daIiLPh5MqIFCDfPi99kAIjmmrTXtUw1J9eRef7MICgGuN0KaNht0cEEWFHaZCk6tmsg OK0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OpAH9rtwwp6s08JiTMp7hlePtG7oyYRNUgmx6J7G2cQ=; b=U4di5w8HbhA7dBA0CB8OpcKbz8XPhGUnnkvDAvDnONFC63sPHNv5Ck2eKYcL3U+AS8 IIzLzGr8rsACuv3h+Paft4RCnMlk5T7FLtOPMhLi0fufJU0SJVhOuLhxXpPY51rrZu04 Z/s7uLR9MxHUKblVTeozeMpcWDtp/NoEtfkm+9Try3BL51vIf3qlEbvEAA0ZrEHvZD+m sFTXxNU76Td3JH3C1SzLYBiwWDjsJ3Y6iL+jRGkXD5K/nMBWnMca+LPD2LF9Qe6o1Lu7 Uw/OjUkYUIa2VlQI3mvYhMxVeT1EqTGKdq6f6qGKEa+iICUyg8rdO6FSc46I3HCgVbYB uW8w== X-Gm-Message-State: AJaThX4R7Nn7DIzwloMbitXfkx/yzFJ1/tcoglNyhdjcvfO/vu1I0GEo YL5bvoxUEMvYJAeBEaSc/fTVwJg0Y3DlqeO5Uf6FXdUQ X-Google-Smtp-Source: AGs4zMYX93JUmLFp/F9Ktl7EbRANODUhbeimaDCFw4vx6+EPzE2LJE/O2Km8v/AyPRrQrjxIi84NeuL13j3HqF4rmUE= X-Received: by 10.202.252.67 with SMTP id a64mr1157044oii.303.1510843764366; Thu, 16 Nov 2017 06:49:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.161.160 with HTTP; Thu, 16 Nov 2017 06:49:23 -0800 (PST) In-Reply-To: References: From: Artur Jablonski Date: Thu, 16 Nov 2017 15:49:23 +0100 Message-ID: Subject: Re: Camel [2.19.3] + SpringBoot [1.5.6] fails executing two JUnit tests that succeed when run individually To: users@camel.apache.org Content-Type: multipart/alternative; boundary="001a113cdfc2e2f66a055e1ab974" archived-at: Thu, 16 Nov 2017 14:49:30 -0000 --001a113cdfc2e2f66a055e1ab974 Content-Type: text/plain; charset="UTF-8" Hey, Nope, I tried with 2.19.4 and it was failing in the same way as 2.19.3. We felt brave yesterday and moved to 2.20.1. What's the worst thing that can happen? :) On Thu, Nov 16, 2017 at 3:42 PM, Claus Ibsen wrote: > Hi > > If you want to stay on 2.19.x you may try 2.19.4 which could > potentially also have the fix. > > On Wed, Nov 15, 2017 at 4:39 PM, Artur Jablonski > wrote: > > Sweet lord! This must be the fastest response ever... and yes indeed it > > works with 2.20.1. > > > > Thank you Claus > > > > Best, > > Artur > > > > > > On Wed, Nov 15, 2017 at 4:09 PM, Claus Ibsen > wrote: > > > >> Hi > >> > >> I think we fixed something related to that, try with camel 2.20.1. > >> Or refactor your test classes to only have 1 test method when advicing > >> > >> On Wed, Nov 15, 2017 at 4:06 PM, Artur Jablonski > >> wrote: > >> > Hello, > >> > > >> > I've been looking at this issue with running integration tests in > Camel + > >> > SpringBoot combo context. > >> > > >> > I have a route that fails to start in integration tests when > CamelContext > >> > starts up. That's expected. One of endpoints refers to a AWS resource > >> that > >> > the test running machine has no access to. That's OK too, I don't > want to > >> > poke the real resource in the test, so I use the adviceWith() to > replace > >> > the endpoint and start the camel context myself. This works well for a > >> > single test. As soon as I add another test, the second test fails, > >> because > >> > of the complaints from the original endpoint about the permissions. It > >> > looks as if before the second test runs the spring context starts up > >> > together with the camel context (it seems to ignore the fact that the > >> test > >> > class is annotated with @UseAdviceWith). > >> > > >> > This is a minimal testcase I could produce to reproduce the behaviour > >> > https://gist.github.com/anonymous/626cf26197dd5a05569d4d306870a22e > >> > > >> > What am I missing? > >> > > >> > Best, > >> > Artur > >> > >> > >> > >> -- > >> Claus Ibsen > >> ----------------- > >> http://davsclaus.com @davsclaus > >> Camel in Action 2: https://www.manning.com/ibsen2 > >> > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 > --001a113cdfc2e2f66a055e1ab974--