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

Update deps #1301

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
357 changes: 178 additions & 179 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ clap = { version = "4.0.4", features = ["cargo", "derive"] }
async-trait = "0.1.30"
typetag = "0.2.5"
aws-throwaway = "0.1.1"
tokio-bin-process = "0.3.0"
1 change: 1 addition & 0 deletions custom-transforms-example/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async fn shotover_proxy(topology_path: &str) -> BinProcess {
&EventMatcher::new()
.with_level(Level::Info)
.with_message("Shotover is now accepting inbound connections"),
&[],
),
)
.await
Expand Down
2 changes: 1 addition & 1 deletion ec2-cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ aws-throwaway.workspace = true
tracing-appender.workspace = true
shellfish = { version = "0.8.0", features = ["async"] }
rustyline = "11.0.0"
cargo_metadata = "0.15.4"
cargo_metadata = "0.17.0"
2 changes: 1 addition & 1 deletion shotover-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tracing-subscriber.workspace = true
tracing-appender.workspace = true
async-once-cell = "0.5.2"
fred = { version = "6.3.0", features = ["enable-rustls"] }
tokio-bin-process = "0.2.0"
tokio-bin-process.workspace = true
rustls-pemfile = "1.0.2"
aws-throwaway.workspace = true
windsock = { path = "../windsock" }
Expand Down
6 changes: 6 additions & 0 deletions shotover-proxy/tests/redis_int_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ async fn cluster_ports_rewrite() {
async fn multi() {
let _compose = docker_compose("tests/test-configs/redis-multi/docker-compose.yaml");
let shotover = shotover_process("tests/test-configs/redis-multi/topology.yaml")
.expect_startup_events(vec![EventMatcher::new()
.with_level(Level::Warn)
.with_target("shotover::transforms::distributed::tuneable_consistency_scatter")
.with_message(
"Using this transform is considered unstable - Does not work with REDIS pipelines",
)])
.start()
.await;
let mut connection = redis_connection::new_async("127.0.0.1", 6379).await;
Expand Down
5 changes: 2 additions & 3 deletions shotover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ bytes.workspace = true
futures.workspace = true
tokio.workspace = true
tokio-util.workspace = true
tokio-openssl.workspace = true
openssl.workspace = true
csv.workspace = true
hex.workspace = true
hex-literal.workspace = true
async-trait.workspace = true
typetag.workspace = true
tokio-tungstenite = "0.20.0"
# We need to enable the openssl "vendor" feature for rusoto
openssl.workspace = true

# Error handling
thiserror = "1.0"
Expand Down Expand Up @@ -89,7 +89,6 @@ kafka-protocol = "0.6.0"
rustls = { version = "0.21.0", features = ["dangerous_configuration"] }
tokio-rustls = "0.24"
rustls-pemfile = "1.0.2"
rustls-webpki = "0.101.1"
string = "0.3.0"
xxhash-rust = { version = "0.8.6", features = ["xxh3"] }
dashmap = "5.4.0"
Expand Down
2 changes: 1 addition & 1 deletion test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cassandra-cpp-driver-tests = ["cassandra-cpp"]
[dependencies]
tracing.workspace = true
subprocess.workspace = true
tokio-bin-process = "0.2.0"
tokio-bin-process.workspace = true
cdrs-tokio.workspace = true
cassandra-protocol.workspace = true
cassandra-cpp = { version = "2.0.0", optional = true }
Expand Down
8 changes: 8 additions & 0 deletions test-helpers/src/shotover_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct ShotoverProcessBuilder {
cores: Option<String>,
profile: Option<String>,
observability_port: Option<u16>,
event_matchers: Vec<EventMatcher>,
}

impl ShotoverProcessBuilder {
Expand All @@ -25,6 +26,7 @@ impl ShotoverProcessBuilder {
cores: None,
profile: None,
observability_port: None,
event_matchers: vec![],
}
}

Expand Down Expand Up @@ -55,6 +57,11 @@ impl ShotoverProcessBuilder {
self
}

pub fn expect_startup_events(mut self, matchers: Vec<EventMatcher>) -> Self {
self.event_matchers = matchers;
self
}

pub async fn start(&self) -> BinProcess {
let mut shotover = self.start_inner().await;

Expand All @@ -64,6 +71,7 @@ impl ShotoverProcessBuilder {
&EventMatcher::new()
.with_level(Level::Info)
.with_message("Shotover is now accepting inbound connections"),
&self.event_matchers,
),
)
.await
Expand Down
Loading