Skip to content

Commit

Permalink
chore(deps): bump serde_yaml from 0.9.19 to 0.9.21 (vectordotdev#17120)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored Apr 13, 2023
1 parent 8762563 commit d6f2625
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
15 changes: 6 additions & 9 deletions lib/vector-buffers/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<BufferConfig>(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::<BufferConfig>(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]
Expand All @@ -429,10 +429,7 @@ mod test {
max_events: 42
"#;
let error = serde_yaml::from_str::<BufferConfig>(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]
Expand Down
2 changes: 1 addition & 1 deletion vdev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

0 comments on commit d6f2625

Please sign in to comment.