=== 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: 46
   - Set resolved_at to: 2026-07-05 06:28:06

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-07-05 06:28:06
   - Newest resolved: 2026-07-05 06:28:06

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: 16
   - Automatic cleanup was executed

=== Test Complete ===
