Add feature to allow sticky sessions per location

This commit is contained in:
Manuel de Brito Fontes 2017-06-15 20:43:17 -04:00
parent 955897a431
commit 83d03a19a6
6 changed files with 77 additions and 14 deletions

View file

@ -129,7 +129,7 @@ func TestBuildProxyPass(t *testing.T) {
Backend: "upstream-name",
}
pp := buildProxyPass([]*ingress.Backend{}, loc)
pp := buildProxyPass("", []*ingress.Backend{}, loc)
if !strings.EqualFold(tc.ProxyPass, pp) {
t.Errorf("%s: expected \n'%v'\nbut returned \n'%v'", k, tc.ProxyPass, pp)
}