=== Outage Auto-Cleanup Test ===

1. Current cleanup statistics:
   - Total resolved outages: 0
   - Eligible for cleanup: 0
   - Recent resolved (< 12h): 0
   - Oldest resolved: None
   - Newest resolved: None

2. Creating test outage with old resolved timestamp:
   - Created test outage with ID: 138
   - Set resolved_at to: 2026-11-04 05:40:15

3. Cleanup statistics after adding test outage:
   - Total resolved outages: 1
   - Eligible for cleanup: 1
   - Recent resolved (< 12h): 0

4. Performing manual cleanup:
   - Successfully cleaned up 1 resolved outages
   - Oldest resolved: 2026-11-04 05:40:15
   - Newest resolved: 2026-11-04 05:40:15

5. Final cleanup statistics:
   - Total resolved outages: 0
   - Eligible for cleanup: 0
   - Recent resolved (< 12h): 0

6. Testing automatic cleanup (via getActiveOutages):
   - Active outages retrieved: 48
   - Automatic cleanup was executed

=== Test Complete ===
