davsclaus opened a new pull request, #30849: URL: https://github.com/apache/camel/pull/30849
## Description [CAMEL-22083](https://issues.apache.org/jira/browse/CAMEL-22083) says that the connection details printed by `camel infra run` should be named as the Camel options, so that tools (and `camel cmd send --infra`) can set them on an endpoint. Croway aligned FTP, ArangoDB, Artemis, AWS, CQL and Couchbase in May 2025, and since then most services got methods named as the options (`host`, `port`, `brokers`, `hosts`, `serverUrl`, ...). Two things were left: 1. **`InfraRun` printed the Java method names as keys.** The old getters showed up next to the Camel names, for example FTP printed both `getPort` and `port`, and deprecated `hostname` next to `host`. The keys are now property names: - a getter loses its `get` or `is`: `getFtpRootDir` becomes `ftpRootDir`, `getCQL3Port` becomes `cql3Port`; - when the service has a method named as the property, the getter is left out (`port`, not `getPort` as well); - deprecated methods are left out. 2. **Eight services had no Camel names.** ClickHouse, Neo4j, OpenSearch, Pinecone, Weaviate, OPA, OpenFGA and Apicurio Registry get default methods named as the options of their component: - `camel-clickhouse`: `serverUrl`, `database`, `username`, `password` - `camel-neo4j`: `databaseUrl`, `username`, `password` - `camel-opensearch`: `hostAddresses` - `camel-pinecone`: `host` - `camel-weaviate`: `host`, `scheme`, `grpcHost`, `grpcPort` - `camel-opa`: `serverUrl` - `camel-openfga`: `apiUrl` - `camel-apicurio-registry`: `registryUrl` The values are what the integration tests of these components set today. These are default methods, so the existing getters and their users stay as they are. Docs: the sample output in `camel-jbang-dev-services.adoc` used the `get...` keys and is updated. The 4.24 upgrade guide has an entry, because a script that reads `getBootstrapServers` from the JSON (or from `~/.camel/infra-*.json`) has to read `bootstrapServers` or `brokers` now. The CLI's own readers (port detection, `camel cmd send --infra`, the TUI) do not depend on the `get` names. ## Testing - `InfraRunServicePropertiesTest`: the naming rules on a sample service: getters, a deprecated method, a getter next to its property, `is...`, a null value, a method with arguments. - `CamelSendActionInfraTest`: a case for each of the eight services. Each builds an endpoint from the new names and validates it against the catalog, so the names are real options of the component. - The infra and send tests of camel-jbang-core pass (129 + 3). - End to end: `camel infra run ftp --json` with the branch's camel-jbang-core prints `host`, `port`, `username`, `password`, `directoryName`, `ftpRootDir`, `endpointUri`, `connectionBase`; `getPort` and `hostname` are gone. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
