Skip to content
New issue

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

Consider supporting mocking Cassandra/astra and fault/latency injecting #119

Open
spockz opened this issue Oct 8, 2023 · 0 comments
Open

Comments

@spockz
Copy link

spockz commented Oct 8, 2023

In our testing we have a process where we test our application's binary as it goes to production. For HTTP we use contracts to stub data and we use fault and latency injection to mimic production behaviour. Currently we use either an actual single Cassandra node, or a full cluster when the application needs Cassandra. This has the benefit of testing the actual Cassandra part at the cost of the runtime. The other drawback is that there is an actual state, so a DELETE may break the next SELECT.

Looking at the mockcluster code there seems room to make queries/statements read-only.

Is it within the scope of this project to be either or/and:

  1. A proxy to an actual CQL/Cassandra cluster with fault and latency injection.
  2. Supporting fault and latency injection on top of an in-memory mock database

I would be willing to contribute some time on this if I get some pointers on how best to implement this in line with the project.

@spockz spockz changed the title Consider supporting mocking Cassandra/astra Consider supporting mocking Cassandra/astra and fault/latency injecting Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant