![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Databases.NoSql.Cassandra --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases.NoSql.Cassandra -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases.NoSql.Cassandra" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases.NoSql.Cassandra" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases.NoSql.Cassandra" />Project file
paket add Rig.TUnit.Databases.NoSql.Cassandra --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases.NoSql.Cassandra, 0.1.0-beta.2"
#:package Rig.TUnit.Databases.NoSql.Cassandra@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases.NoSql.Cassandra&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases.NoSql.Cassandra&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Testcontainers-backed Apache Cassandra fixture with
KeyspacePerTestHelperfor injection-safe per-test keyspaces.
The Rig.TUnit Cassandra provider. CassandraFixture spins Apache
Cassandra via Testcontainers and exposes a Session ready for CQL.
KeyspacePerTestHelper is the novel piece — it validates keyspace names
via a CQL-identifier whitelist (48-char cap, [a-z_][a-z0-9_]*
alphabet, no " injection possible) and issues CREATE KEYSPACE /
DROP KEYSPACE per test inside an IAsyncDisposable scope.
CassandraCSharpDriver 3.x (transitive)using Cassandra;
using Rig.TUnit.Core.Helpers;
using Rig.TUnit.Databases.NoSql.Cassandra.Fixtures;
using Rig.TUnit.Databases.NoSql.Cassandra.Helpers;
await using var fx = new CassandraFixture();
await fx.InitializeAsync();
var key = IsolationKey.FromExecutionContext();
await using var scope = await KeyspacePerTestHelper.CreateAsync(
fx.Session, key, prefix: "orders");
| Property | Type | Default | Description |
|---|---|---|---|
Image |
string |
"cassandra:5.0" |
Container image |
StartupTimeoutSeconds |
int |
180 |
Cassandra boot is slow |
ReplicationStrategy |
string |
"SimpleStrategy" |
Keyspace default |
ReplicationFactor |
int |
1 |
For single-node test cluster |
Rig.TUnit.Databases.NoSql.Cassandra.Fixtures.CassandraFixtureRig.TUnit.Databases.NoSql.Cassandra.Options.CassandraFixtureOptionsRig.TUnit.Databases.NoSql.Cassandra.Builder.CassandraRigBuilderRig.TUnit.Databases.NoSql.Cassandra.Helpers.KeyspacePerTestHelperKeyspacePerTestHelper.CreateAsync(session, isolationKey, prefix) returns
an IAsyncDisposable scope owning a keyspace named
{prefix}_{IsolationKey:short}. BuildSafeKeyspace enforces the CQL
identifier whitelist (no ", ;, --, whitespace; 48-char cap; lowercase
start; underscore-alphanumeric continuations). On dispose: DROP KEYSPACE.
Unconfigured table — the session's keyspace is still the default
system; either call USE {keyspace} or fully qualify table names.Unable to connect to any servers — the container is still warming
up. Fixture waits for SELECT release_version FROM system.local but
under heavy parallel startup the wait may time out; raise
StartupTimeoutSeconds.See .
ONE consistency
level). Tests asserting after a write must use CL.LOCAL_QUORUM or
poll; never assume read-your-writes.KeyspacePerTestHelper
enforces the strict whitelist instead of quoting.See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Databases.NoSql.Cassandra:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 72 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 63 | 4/26/2026 |