diff --git a/Cargo.lock b/Cargo.lock index 5d3fd7bef4070..99a283bc93c95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7709,9 +7709,9 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.9.19" +version = "0.9.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82e6c8c047aa50a7328632d067bcae6ef38772a79e28daf32f735e0e4f3dd10" +checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c" dependencies = [ "indexmap", "itoa", @@ -9380,7 +9380,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "sha2 0.10.6", "tempfile", "toml 0.7.3", @@ -9533,7 +9533,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_with 2.3.2", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "sha2 0.10.6", "similar-asserts", "smallvec", @@ -9640,7 +9640,7 @@ dependencies = [ "rand 0.8.5", "rkyv", "serde", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "snafu", "temp-dir", "tokio", diff --git a/Cargo.toml b/Cargo.toml index d0f8c5e684802..855d52ce93019 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -193,7 +193,7 @@ serde-toml-merge = { version = "0.3.0", default-features = false } serde_bytes = { version = "0.11.9", default-features = false, features = ["std"], optional = true } serde_json = { version = "1.0.95", default-features = false, features = ["raw_value"] } serde_with = { version = "2.3.2", default-features = false, features = ["macros", "std"] } -serde_yaml = { version = "0.9.19", default-features = false } +serde_yaml = { version = "0.9.21", default-features = false } # Messagepack rmp-serde = { version = "1.1.1", default-features = false, optional = true } diff --git a/lib/vector-buffers/src/config.rs b/lib/vector-buffers/src/config.rs index 552daf68ccafa..67a1994c3bb6d 100644 --- a/lib/vector-buffers/src/config.rs +++ b/lib/vector-buffers/src/config.rs @@ -406,21 +406,21 @@ mod test { } } + const BUFFER_CONFIG_NO_MATCH_ERR: &str = + "data did not match any variant of untagged enum BufferConfig"; + #[test] fn parse_empty() { let source = ""; let error = serde_yaml::from_str::(source).unwrap_err(); - assert_eq!(error.to_string(), "EOF while parsing a value"); + assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR); } #[test] fn parse_only_invalid_keys() { let source = "foo: 314"; let error = serde_yaml::from_str::(source).unwrap_err(); - assert_eq!( - error.to_string(), - "data did not match any variant of untagged enum BufferConfig" - ); + assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR); } #[test] @@ -429,10 +429,7 @@ mod test { max_events: 42 "#; let error = serde_yaml::from_str::(source).unwrap_err(); - assert_eq!( - error.to_string(), - "data did not match any variant of untagged enum BufferConfig" - ); + assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR); } #[test] diff --git a/vdev/Cargo.toml b/vdev/Cargo.toml index bbc3da48ae664..ccc6393620f09 100644 --- a/vdev/Cargo.toml +++ b/vdev/Cargo.toml @@ -34,7 +34,7 @@ regex = { version = "1.7.1", default-features = false, features = ["std", "perf" reqwest = { version = "0.11", features = ["json", "blocking"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.95" -serde_yaml = "0.9.19" +serde_yaml = "0.9.21" sha2 = "0.10.6" tempfile = "3.5.0" toml = { version = "0.7.2", default-features = false, features = ["parse"] }