Federico Mariani created CAMEL-22083:
----------------------------------------

             Summary: Align test infra interfaces to match Camel properties
                 Key: CAMEL-22083
                 URL: https://issues.apache.org/jira/browse/CAMEL-22083
             Project: Camel
          Issue Type: Improvement
            Reporter: Federico Mariani


When using _camel infra run $SERVICE_ the resulting json properties should 
match the Camel ones. For example, right now _camel infra run ftp_ print
{code:java}
{
  "getFtpRootDir" : 
"file:///private/tmp/test/target/ftp/camel-test-infra-test-directory/camel-test-infra-configuration-test-directory",
  "getPort" : 49894
} {code}
This json has some issues:
*  Wrong naming convention, _getPort_ should be _port_ to match the property in 
Camel
* The hostname is missing (in this case can be a constant, localhost)
* The directoryName is missing as well (any constant string would be ok)
* Username and password are needed as well since the underlying implementation 
needs those.

Each test service runnable via camel jbang should be reviewed and updated.

This way, the command will be _tool-friendly_ and tools may automagically 
configure routes for fast prototyping.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to