mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 18:46:17 +00:00
style(tier): format candidate validation test
This commit is contained in:
@@ -430,10 +430,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn transition_candidate_probe_rejects_untrusted_version_ids() {
|
fn transition_candidate_probe_rejects_untrusted_version_ids() {
|
||||||
let mut candidates = TransitionCandidateVersions::default();
|
let mut candidates = TransitionCandidateVersions::default();
|
||||||
candidates.extend(
|
candidates.extend("archive/object", &list_versions(&[("archive/object", "version\ninjection")], &[], false));
|
||||||
"archive/object",
|
|
||||||
&list_versions(&[("archive/object", "version\ninjection")], &[], false),
|
|
||||||
);
|
|
||||||
|
|
||||||
let err = classify_transition_candidates(candidates, RemoteBucketVersioning::Enabled)
|
let err = classify_transition_candidates(candidates, RemoteBucketVersioning::Enabled)
|
||||||
.expect_err("control characters in listed version IDs must fail closed");
|
.expect_err("control characters in listed version IDs must fail closed");
|
||||||
|
|||||||
Reference in New Issue
Block a user