MCPcopy
hub / github.com/henrygd/beszel / Cleanup

Method Cleanup

internal/tests/hub.go:120–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (h *TestHub) Cleanup() {
121 h.GetAlertManager().Stop()
122 h.GetSystemManager().RemoveAllSystems()
123 h.TestApp.Cleanup()
124}
125
126func CreateSystems(app core.App, count int, userId string, status string) ([]*core.Record, error) {
127 systems := make([]*core.Record, 0, count)

Callers 15

TestUserAlertsApiFunction · 0.95
TestSetAlertTriggeredFunction · 0.95
TestDeleteOldRecordsFunction · 0.95
TestDeleteOldSystemStatsFunction · 0.95
TestDisablePasswordAuthFunction · 0.95
TestUserCreationFunction · 0.95

Calls 4

StopMethod · 0.80
GetAlertManagerMethod · 0.80
RemoveAllSystemsMethod · 0.80
GetSystemManagerMethod · 0.80

Tested by 15

TestUserAlertsApiFunction · 0.76
TestSetAlertTriggeredFunction · 0.76
TestDeleteOldRecordsFunction · 0.76
TestDeleteOldSystemStatsFunction · 0.76
TestDisablePasswordAuthFunction · 0.76
TestUserCreationFunction · 0.76