fix: resolve stale credentials causing astrolabe test failures#571
fix: resolve stale credentials causing astrolabe test failures#571cbcoutinho wants to merge 1 commit intomasterfrom
Conversation
… failures The revoke test failed because it only completed Step 2 (app password) but not Step 1 (OAuth authorization). In hybrid mode, Astrolabe requires both steps for $isFullyConfigured=true, which gates the "Revoke Access" button. Changes: - Use complete_astrolabe_authorization() in revoke test for full two-step flow - Add stale state cleanup (app passwords, bruteforce entries, Astrolabe prefs) to both enablement and revoke tests - Add startup cleanup of invalid app passwords in BasicAuth mode - Pre-validate credentials before entering scanner loop to fail fast - Handle 401/403/429 in scanner with proper backoff and circuit breaking - Clean up app passwords in test_users_setup fixture teardown Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PR Review: fix: resolve stale credentials causing astrolabe test failuresOverall this is a solid fix — the root cause (stale app passwords blocking re-authorization) is well-diagnosed and the circuit breaker / pre-validation additions make the scanner meaningfully more robust. A few things worth addressing: Issues1. Inline
|
Summary
complete_astrolabe_authorization()for full two-step flow (OAuth + app password) instead of only completing Step 2. In hybrid mode, Astrolabe requires both steps for$isFullyConfigured=true, which gates the "Revoke Access" button.Test plan
test_revoke_background_sync_accesspasses (was failing)test_multi_user_astrolabe_background_sync_enablementpasses (no regression)This PR was generated with the help of AI, and reviewed by a Human