Skip to content

Commit 7d37bbb

Browse files
authored
test: add test helpers for object store types (#25420)
This adds a new crate `influxdb3_test_helpers` which provides two object store helper types that can be used to track request counts made through the store, as well as synchronize requests made through the store, resp.
1 parent 7a903ca commit 7d37bbb

File tree

8 files changed

+415
-234
lines changed

8 files changed

+415
-234
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ members = [
88
"influxdb3_load_generator",
99
"influxdb3_process",
1010
"influxdb3_server",
11+
"influxdb3_telemetry",
12+
"influxdb3_test_helpers",
1113
"influxdb3_wal",
1214
"influxdb3_write",
1315
"iox_query_influxql_rewrite",
14-
"influxdb3_telemetry",
1516
]
1617
default-members = ["influxdb3"]
1718

influxdb3_test_helpers/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "influxdb3_test_helpers"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
8+
[dependencies]
9+
async-trait.workspace = true
10+
bytes.workspace = true
11+
futures.workspace = true
12+
hashbrown.workspace = true
13+
object_store.workspace = true
14+
parking_lot.workspace = true
15+
tokio.workspace = true
16+
17+
[lints]
18+
workspace = true

influxdb3_test_helpers/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod object_store;

0 commit comments

Comments
 (0)