alerts tests and small refactoring

This commit is contained in:
henrygd
2025-09-04 19:09:16 -04:00
parent a162a54a58
commit d1295b7c50
6 changed files with 337 additions and 22 deletions

View File

@@ -100,3 +100,10 @@ func (sm *SystemManager) SetSystemStatusInDB(systemID string, status string) boo
return true
}
// TESTING ONLY: RemoveAllSystems removes all systems from the store
func (sm *SystemManager) RemoveAllSystems() {
for _, system := range sm.systems.GetAll() {
sm.RemoveSystem(system.Id)
}
}