From 4224cebb4ed9f027589bd7c61868eac30c316cb1 Mon Sep 17 00:00:00 2001 From: overtrue Date: Sun, 29 Mar 2026 11:07:27 +0800 Subject: [PATCH] feat(phase-2): add event shorthand dedupe regression test --- crates/cli/src/commands/event.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/cli/src/commands/event.rs b/crates/cli/src/commands/event.rs index 28f706a..15320a5 100644 --- a/crates/cli/src/commands/event.rs +++ b/crates/cli/src/commands/event.rs @@ -474,6 +474,13 @@ mod tests { ); } + #[test] + fn test_parse_event_list_deduplicates_shorthand_and_canonical_values() { + let events = parse_event_list(&["put,s3:ObjectCreated:*".to_string(), "PUT".to_string()]); + + assert_eq!(events, vec!["s3:ObjectCreated:*".to_string()]); + } + #[test] fn test_infer_target_from_arn() { assert_eq!(