testcontainers / testcontainers/testcontainers-java
Provide an out-of-the-box WaitStrategy that validates Cassandra's CqlSession is available
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
We're using testcontainers with Cassandra and we need to make sure that the CqlSession is available as things happen asynchronously.
We ended up, with the help of the Cassandra team, with this code.
Although the local datacenter is specific, it could be a parameter of some kind maybe? Or a supplier for CqlSessionBuilder?
It looks like every ITs would need this strategy so it would be awesome if the project would provide that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced Spring Boot test at spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfigurationWithPasswordAuthenticationIntegrationTests.java and review how it checks CqlSession availability. Define what an out-of-the-box Cassandra WaitStrategy should validate, including how local datacenter configuration is supplied; done when the strategy supports asynchronous session availability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cassandra, java
- Domain
- databases, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100