test(health): cover SMTP unhealthy aggregation behavior
This commit is contained in:
@@ -57,10 +57,15 @@ func TestDetermineOverallStatus(t *testing.T) {
|
||||
results: map[string]Result{"db": {Status: StatusUnhealthy}, "smtp": {Status: StatusHealthy}},
|
||||
expected: StatusUnhealthy,
|
||||
},
|
||||
{
|
||||
name: "smtp unhealthy downgrades overall to degraded",
|
||||
results: map[string]Result{"db": {Status: StatusHealthy}, "smtp": {Status: StatusUnhealthy}},
|
||||
expected: StatusDegraded,
|
||||
},
|
||||
{
|
||||
name: "mixed degraded and unhealthy",
|
||||
results: map[string]Result{"db": {Status: StatusDegraded}, "smtp": {Status: StatusUnhealthy}},
|
||||
expected: StatusUnhealthy,
|
||||
expected: StatusDegraded,
|
||||
},
|
||||
{
|
||||
name: "empty results",
|
||||
|
||||
Reference in New Issue
Block a user