camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4814) Use dynamic port numbers for unit tests the examples
Date Mon, 13 Aug 2012 04:47:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432915#comment-13432915
] 

Claus Ibsen commented on CAMEL-4814:
------------------------------------

@David

Yeah I think we should have examples that are OSGi only (eg having -osgi in the name), and
then examples that are pure non-OSGi. Trying to cater for both worlds in the same example
is not best practice either, often causing the example to not work well in either mode.

I think we have a features.xml file that lists a number of -examples in it. Can you double
check with that file, so we only list the examples that can work with OSGi. eg so when people
do a features:install camel in Karaf, then the features:list does not show the non-OSGi Camel
examples.
                
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
>                 Key: CAMEL-4814
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4814
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: David Valeri
>             Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port number in use
issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address
already in use
> We should use dynamic port numbers, like we do when testing components. camel-test has
a util class to find a free port number.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message