Verified only server block
This commit is contained in:
parent
76a01a99d5
commit
7c81bc8ac7
1 changed files with 2 additions and 4 deletions
|
@ -54,11 +54,9 @@ var _ = framework.IngressNginxDescribe("Annotations - Affinity", func() {
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
Expect(ing).NotTo(BeNil())
|
Expect(ing).NotTo(BeNil())
|
||||||
|
|
||||||
stickyUpstreamName := "sticky-"+f.Namespace.Name+"-http-svc-80"
|
|
||||||
err = f.WaitForNginxServer(host,
|
err = f.WaitForNginxServer(host,
|
||||||
func(cfg string) bool {
|
func(server string) bool {
|
||||||
return strings.Contains(cfg, "proxy_pass http://"+stickyUpstreamName+";") &&
|
return strings.Contains(server, "proxy_pass http://sticky-"+f.Namespace.Name+"-http-svc-80;")
|
||||||
strings.Contains(cfg, "sticky hash=md5 name=SERVERID httponly;")
|
|
||||||
})
|
})
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue