Skip to content

Commit

Permalink
Merge pull request #113 from HIRO-MicroDataCenters-BV/integration-tests
Browse files Browse the repository at this point in the history
NATS messaging integration test
  • Loading branch information
ktatarnikovhiro authored Jan 17, 2025
2 parents b1b2f95 + a6bd8ea commit 01f1315
Show file tree
Hide file tree
Showing 24 changed files with 1,886 additions and 454 deletions.
75 changes: 53 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ futures-lite = "2.5.0"
futures-util = "0.3.30"
iroh-blobs = "0.25.0"
iroh-io = { version = "0.6.1", features = ["x-http"] }
rust-s3 = { version = "0.35.1", features = ["tokio"] }
rust-s3 = { version = "0.35.1", features = ["tokio", "blocking"] }
thiserror = "2.0.3"
tokio = { version = "1.41.1", features = ["full"] }
tokio-stream = "0.1.15"
Expand All @@ -44,4 +44,8 @@ tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tempfile = "3.10.1"
rusty-hook = "^0.11.2"
once_cell = "1.20.2"
dashmap = "6.1.0"
futures = { version = "0.3.28", default-features = false, features = ["std"] }
pin-project = "1.1.8"

6 changes: 6 additions & 0 deletions rhio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ tokio-stream.workspace = true
tokio-util.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
pin-project.workspace = true
bytes.workspace = true
futures.workspace = true

[dev-dependencies]
figment = { workspace = true, features = ["test"] }
once_cell.workspace = true
dashmap.workspace = true
serde_json.workspace = true
4 changes: 2 additions & 2 deletions rhio/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl Default for S3Config {
}
}

#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub struct NatsConfig {
pub endpoint: String,
pub credentials: Option<NatsCredentials>,
Expand All @@ -181,7 +181,7 @@ impl Default for NatsConfig {
}
}

#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize, Hash)]
pub struct NatsCredentials {
pub nkey: Option<String>,
pub username: Option<String>,
Expand Down
Loading

0 comments on commit 01f1315

Please sign in to comment.