fix make verify-all failures
This commit is contained in:
parent
4b76ad14bb
commit
9198e2c14b
3 changed files with 6 additions and 6 deletions
File diff suppressed because one or more lines are too long
|
@ -645,7 +645,7 @@ func buildUpstreamName(host string, b interface{}, loc interface{}, dynamicConfi
|
||||||
|
|
||||||
upstreamName := location.Backend
|
upstreamName := location.Backend
|
||||||
|
|
||||||
if !dynamicConfigurationEnabled{
|
if !dynamicConfigurationEnabled {
|
||||||
for _, backend := range backends {
|
for _, backend := range backends {
|
||||||
if backend.Name == location.Backend {
|
if backend.Name == location.Backend {
|
||||||
if backend.SessionAffinity.AffinityType == "cookie" &&
|
if backend.SessionAffinity.AffinityType == "cookie" &&
|
||||||
|
|
|
@ -730,7 +730,7 @@ func TestBuildUpstreamName(t *testing.T) {
|
||||||
expected := defaultBackend
|
expected := defaultBackend
|
||||||
|
|
||||||
if tc.Sticky {
|
if tc.Sticky {
|
||||||
if !tc.DynamicConfigurationEnabled{
|
if !tc.DynamicConfigurationEnabled {
|
||||||
expected = fmt.Sprintf("sticky-" + expected)
|
expected = fmt.Sprintf("sticky-" + expected)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue