We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug In case the container is already running (from a previous test), and the keyspace already present, this init fails
The following script is used to initialize Cassandra keyspace:
https://github.com/PlaytikaOSS/testcontainers-spring-boot/blob/develop/embedded-cassandra/src/main/resources/cassandra-init.sql.template
Expected behavior The keyspace should not be recreated if it already exists. The following could be used:
CREATE KEYSPACE IF NOT EXISTS {{keyspaceName}} WITH REPLICATION = { 'class':'SimpleStrategy', 'replication_factor' : {{replicationFactor}} }
Enviroment (please complete the following information):
Module:
Additional context A workaround is to add a new cassandra-init.sql.template as part of the tests with the script mentioned before.
cassandra-init.sql.template
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
In case the container is already running (from a previous test), and the keyspace already present, this init fails
The following script is used to initialize Cassandra keyspace:
https://github.com/PlaytikaOSS/testcontainers-spring-boot/blob/develop/embedded-cassandra/src/main/resources/cassandra-init.sql.template
Expected behavior
The keyspace should not be recreated if it already exists. The following could be used:
Enviroment (please complete the following information):
Module:
Additional context
A workaround is to add a new
cassandra-init.sql.template
as part of the tests with the script mentioned before.The text was updated successfully, but these errors were encountered: