fix e2e
This commit is contained in:
parent
743c45b04d
commit
5d3d9f5778
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ import (
|
|||
|
||||
// GetLbAlgorithm returns algorithm identifier for the given backend
|
||||
func (f *Framework) GetLbAlgorithm(serviceName string, servicePort int) (string, error) {
|
||||
backendName := fmt.Sprintf("%s-%s-%v", f.Namespace, serviceName, servicePort)
|
||||
backendName := fmt.Sprintf("%s_%s_%v", f.Namespace, serviceName, servicePort)
|
||||
cmd := fmt.Sprintf("/dbg backends get %s", backendName)
|
||||
|
||||
output, err := f.ExecIngressPod(cmd)
|
||||
|
|
|
@ -68,7 +68,7 @@ var _ = framework.IngressNginxDescribe("[SSL] [Flag] default-ssl-certificate", f
|
|||
f.EnsureIngress(ing)
|
||||
|
||||
ginkgo.By("making sure new ingress is deployed")
|
||||
expectedConfig := fmt.Sprintf(`set $proxy_upstream_name "%v-%v-%v";`, f.Namespace, service, port)
|
||||
expectedConfig := fmt.Sprintf(`set $proxy_upstream_name "%v_%v_%v";`, f.Namespace, service, port)
|
||||
f.WaitForNginxServer("_", func(cfg string) bool {
|
||||
return strings.Contains(cfg, expectedConfig)
|
||||
})
|
||||
|
@ -90,7 +90,7 @@ var _ = framework.IngressNginxDescribe("[SSL] [Flag] default-ssl-certificate", f
|
|||
assert.Nil(ginkgo.GinkgoT(), err)
|
||||
|
||||
ginkgo.By("making sure new ingress is deployed")
|
||||
expectedConfig := fmt.Sprintf(`set $proxy_upstream_name "%v-%v-%v";`, f.Namespace, service, port)
|
||||
expectedConfig := fmt.Sprintf(`set $proxy_upstream_name "%v_%v_%v";`, f.Namespace, service, port)
|
||||
f.WaitForNginxServer(host, func(cfg string) bool {
|
||||
return strings.Contains(cfg, expectedConfig)
|
||||
})
|
||||
|
|
|
@ -66,7 +66,7 @@ var _ = framework.IngressNginxDescribe("[TCP] tcp-services", func() {
|
|||
|
||||
f.WaitForNginxConfiguration(
|
||||
func(cfg string) bool {
|
||||
return strings.Contains(cfg, fmt.Sprintf(`ngx.var.proxy_upstream_name="tcp-%v-%v-80"`,
|
||||
return strings.Contains(cfg, fmt.Sprintf(`ngx.var.proxy_upstream_name="tcp-%v_%v_80"`,
|
||||
f.Namespace, framework.EchoService))
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue