From a025d312c4ddb747359e6abbc26b600638d49fd5 Mon Sep 17 00:00:00 2001 From: Palo Otcenas Date: Tue, 3 Mar 2026 18:32:01 -0800 Subject: [PATCH] fix(auth): add teams_manage scope and SearchFlakyTests unstable op Remaining changes from PR #144 that weren't covered by PR #153: - Add teams_manage OAuth scope for team create/update/delete operations - Enable v2.search_flaky_tests as an unstable operation Co-Authored-By: Stephen Rosenthal Co-Authored-By: Claude Opus 4.6 --- src/auth/types.rs | 3 ++- src/client.rs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/auth/types.rs b/src/auth/types.rs index b9a61181..30b5079d 100644 --- a/src/auth/types.rs +++ b/src/auth/types.rs @@ -133,6 +133,7 @@ pub fn default_scopes() -> Vec<&'static str> { "synthetics_write", "synthetics_private_location_read", // Teams + "teams_manage", "teams_read", // Timeseries "timeseries_query", @@ -186,7 +187,7 @@ mod tests { #[test] fn test_default_scopes() { let scopes = default_scopes(); - assert_eq!(scopes.len(), 69); + assert_eq!(scopes.len(), 70); assert!(scopes.contains(&"dashboards_read")); assert!(scopes.contains(&"monitors_read")); assert!(scopes.contains(&"logs_read_data")); diff --git a/src/client.rs b/src/client.rs index 57c366ea..9e06b5e6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -187,7 +187,8 @@ static UNSTABLE_OPS: &[&str] = &[ "v2.list_findings", // SLO Status (1) "v2.get_slo_status", - // Flaky Tests (1) + // Flaky Tests (2) + "v2.search_flaky_tests", "v2.update_flaky_tests", ]; @@ -537,7 +538,7 @@ mod tests { #[test] fn test_unstable_ops_count() { - assert_eq!(UNSTABLE_OPS.len(), 64); + assert_eq!(UNSTABLE_OPS.len(), 65); } #[test]