1
0
Fork 0

Support 3xx HTTP status codes for health check

This commit is contained in:
Ondrej Flidr 2018-05-23 17:06:04 +02:00 committed by Traefiker Bot
parent c09febfffc
commit d6d795e286
3 changed files with 12 additions and 4 deletions

View file

@ -47,6 +47,14 @@ func TestSetBackendsConfiguration(t *testing.T) {
expectedNumUpsertedServers: 0,
expectedGaugeValue: 1,
},
{
desc: "healthy server staying healthy (StatusPermanentRedirect)",
startHealthy: true,
healthSequence: []int{http.StatusPermanentRedirect},
expectedNumRemovedServers: 0,
expectedNumUpsertedServers: 0,
expectedGaugeValue: 1,
},
{
desc: "healthy server becoming sick",
startHealthy: true,