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 BEF8E8CF6 for ; Sat, 3 Sep 2011 11:54:39 +0000 (UTC) Received: (qmail 14244 invoked by uid 500); 3 Sep 2011 11:54:39 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 14049 invoked by uid 500); 3 Sep 2011 11:54:34 -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 14041 invoked by uid 99); 3 Sep 2011 11:54:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 11:54:33 +0000 X-ASF-Spam-Status: No, hits=-1999.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 11:54:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 02F804D862 for ; Sat, 3 Sep 2011 11:54:10 +0000 (UTC) Date: Sat, 3 Sep 2011 11:54:10 +0000 (UTC) From: "Mathieu Lalonde (JIRA)" To: dev@camel.apache.org Message-ID: <150429600.14619.1315050850008.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1040609649.36846.1313302227131.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CAMEL-4332) camel-nagios - test that we use Camel type converter to convert message body to String before sending to Nagios MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mathieu Lalonde updated CAMEL-4332: ----------------------------------- Attachment: camel-nagios_test_polished.tar Attached additional unit test based on earlier feedback. Added NagiosFileToStringTest along with NagiosTestSupport abstract class to make it clear why we are deliberately skipping test when we can't setup the nagios stub. Polished other tests to extend NagiosTestSupport. Some (but not all) classes were using a different ports for the nagios stub, they now all use the same port. I could re-adjust this if required. > camel-nagios - test that we use Camel type converter to convert message body to String before sending to Nagios > --------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-4332 > URL: https://issues.apache.org/jira/browse/CAMEL-4332 > Project: Camel > Issue Type: Test > Reporter: Claus Ibsen > Assignee: Mathieu Lalonde > Priority: Trivial > Fix For: 2.9.0 > > Attachments: camel-nagios_test-contribution.tar, camel-nagios_test-patch.tar, camel-nagios_test_polished.tar > > > See nabble > http://camel.465427.n5.nabble.com/Sending-Nagios-Passive-Checks-from-Spring-HowTo-tp4694564p4694564.html > If people route a payload which is not already a String, we should convert that to a String beforehand sending to Nagios. > In the nabble link the user routes from file -> nagios. And thus the payload is a java.io.File instead. > All needed is to use the Camel type converter to convert to String first. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira