oscerd opened a new pull request, #2919: URL: https://github.com/apache/camel-kamelets/pull/2919
## Summary Adds container-based Citrus integration tests for 7 database kamelets using Testcontainers. All tests use **Camel route YAML** format (per #2873). ### New tests | Kamelet | Container | Citrus DSL | Test strategy | |---------|-----------|-----------|---------------| | `postgresql-source` | postgres | Native `postgresql:` | Init table+data via `initScript:`, source polls, verify via log | | `postgresql-sink` | postgres | Native `postgresql:` | Init table, timer sends JSON, sink inserts, verify via log | | `mongodb-source` | mongo | Native `mongodb:` | Pre-insert doc via Groovy, source consumes, verify via log | | `mongodb-sink` | mongo | Native `mongodb:` | Timer sends JSON, sink inserts with `createCollection=true`, verify via log | | `redis-sink` | redis:7 | Generic `container:` | Timer sends value with SET command, verify via log | | `cassandra-source` | cassandra:4.1 | Generic `container:` | Setup keyspace/table via Groovy, source polls CQL, verify via log | | `cassandra-sink` | cassandra:4.1 | Generic `container:` | Setup keyspace/table, timer sends JSON list, sink inserts, verify via log | ### Files - **4 new IT classes**: `PostgresIT.java`, `MongoIT.java`, `RedisIT.java`, `CassandraIT.java` - **7 route YAML files** + **7 Citrus test YAML files** - **3 support files**: `init.sql`, `insertDocument.groovy`, `setupKeyspace.groovy` - **2 application.properties** (PostgreSQL, MongoDB) - **1 POM update**: added `camel-sql`, `camel-mongodb`, `camel-spring-redis`, `camel-cassandraql` test dependencies ## Test plan - [ ] `mvn compile test-compile -pl :camel-kamelets-itest` passes - [ ] `mvn verify -pl :camel-kamelets-itest -Denable.integration.tests -Dtest=PostgresIT` — PostgreSQL tests pass - [ ] `mvn verify -pl :camel-kamelets-itest -Denable.integration.tests -Dtest=MongoIT` — MongoDB tests pass - [ ] `mvn verify -pl :camel-kamelets-itest -Denable.integration.tests -Dtest=RedisIT` — Redis tests pass - [ ] `mvn verify -pl :camel-kamelets-itest -Denable.integration.tests -Dtest=CassandraIT` — Cassandra tests pass _Claude Code on behalf of Andrea Cosentino_ 🤖 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]
