My application connects with Cassandra Cluster using Credentials. I am creating an instance of TestCassandra as follows:
val testCassandra = cqlStatementsOption.map(cqlStatements =>{
new TestCassandra(factory,cqlStatements)})
.getOrElse(new TestCassandra())
I suppose above statement will create a cluster. How can I specify a username and password for the created cluster ? One of my test cases is that application should not start if the username/password to cassandra database are incorrect.
init.cql:
cassandra-secure.yaml: