Open
Description
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:
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):
- OS name : [e.g. MacOS]
- Docker Version: [e.g. 20.10.24]
Module:
- Module Name: emdedded-cassandra
- Module Version: 3.0.0-RC8
Additional context
A workaround is to add a new cassandra-init.sql.template
as part of the tests with the script mentioned before.