Signed-off-by: joshvanl <me@joshvanl.dev> Co-authored-by: Bernd Verst <github@bernd.dev> |
||
---|---|---|
.. | ||
components/docker | ||
README.md | ||
cassandra_test.go | ||
config.yaml | ||
docker-compose-cluster.yml | ||
docker-compose-single.yml |
README.md
Test for TTL
- TTL not expiring
- TTL not a valid number
- TTL Expires as expected
- Provide a TTL of 5 second
- Fetch this record just after saving
- Sleep for 5 seconds
- Try to fetch again after a gap of 5 seconds, record shouldn't be deleted
Connection Recovery
- When Cassandra goes down and then comes back up the client is able to reconnect
Test Metadata Fields
-
Verify
port
attribute is used- set port to non default value
- run dapr application with component
- component should successfully initialize
-
Verify
keyspace
attribute is used- set keyspace to non-default value
- run dapr application with component
- component should successfully initialize and create keyspace
-
Verify
table
attribute is used- set table to non-default value
- run dapr application with component
- component should successfully initialize and create table
- successfully run query on table
-
Verify
protoVersion
attribute is used- set protoVersion to non-default value 0
- run dapr application with component
- cassandra client itself should detect version from cluster if protoVersion == 0
- component should successfully initialize
- run queries to verify
-
Verify
protoVersion
attribute is used -negative test- set protoVersion to non-default value 1
- run dapr application with component
- component should recieve errors on queries
-
Verify
replicationFactor
attribute is used- set replicationFactor to non-default value 2
- run dapr application with component using 2 nodes
- component should successfully initialize
- run queries to verify
-
Verify
replicationFactor
attribute is used - negative test- set replicationFactor to non-default value 2
- run dapr application with component using 1 node
- component should recieve errors on queries
-
Verify
consistency
attribute is used - negative test- set consistency to non-default value "Three"
- run dapr application with component
- component should successfully initialize
- run queries and see failure due to less than 3 nodes available
-
Verify
consistency
attribute is used- set consistency to non-default value "Two"
- run dapr application with component
- component should successfully initialize
- run queries successfully