Skip to content

Commit 8cf9b80

Browse files
Insert a test function for the storage and tests for Memory, ScyllaDb and DynamoDb. (#4821)
## Motivation The `linera-storage` is a critical part of `linera`. However, we do not have unit tests for the storage functionality, even if it is very important. Instead, the tests are done in `linera-views`, in the `end-to-end` tests and other tests. ## Proposal Introduce a function that takes a storage and does the tests. Introduce three separate functions for the memory, DynamoDb, and ScyllaDb. ## Test Plan The PR introduces some tests. The memory tests are immediate, the DynamoDb takes 0.3s, and the ScyllaDb 0.69s. ## Release Plan - Nothing to do / These changes follow the usual release cycle. There is no need to put it on TestNet Conway. ## Links None.
1 parent 597d390 commit 8cf9b80

File tree

3 files changed

+380
-0
lines changed

3 files changed

+380
-0
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

linera-storage/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ revm = ["linera-execution/revm"]
1919
test = ["linera-execution/test", "linera-views/test"]
2020
wasmer = ["linera-execution/wasmer"]
2121
wasmtime = ["linera-execution/wasmtime"]
22+
scylladb = ["linera-views/scylladb"]
23+
dynamodb = ["linera-views/dynamodb"]
2224
metrics = [
2325
"linera-base/metrics",
2426
"linera-chain/metrics",
@@ -50,6 +52,9 @@ tracing.workspace = true
5052
[dev-dependencies]
5153
anyhow.workspace = true
5254
linera-storage = { path = ".", default-features = false, features = ["test"] }
55+
test-case.workspace = true
56+
test-log = { workspace = true, features = ["trace"] }
57+
tokio.workspace = true
5358

5459
[build-dependencies]
5560
cfg_aliases.workspace = true

0 commit comments

Comments
 (0)