Merge pull request #2526 from ElvinEfendi/fix-upstreah-hash-lua-test

Fix upstream hash lua test
This commit is contained in:
k8s-ci-robot 2018-05-16 17:57:52 -07:00 committed by GitHub
commit 94198fce83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,15 +252,6 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() {
newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1]
Expect(newUpstreamName).Should(Equal(upstreamName))
}
resp, body, errs = gorequest.New().
Get(fmt.Sprintf("%s?completely-different-path", f.IngressController.HTTPURL)).
Set("Host", "foo.com").
End()
Expect(len(errs)).Should(Equal(0))
Expect(resp.StatusCode).Should(Equal(http.StatusOK))
anotherUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1]
Expect(anotherUpstreamName).NotTo(Equal(upstreamName))
})
Context("when session affinity annotation is present", func() {