fix unitest issue
This commit is contained in:
parent
f7556a3634
commit
8ef4db3618
1 changed files with 2 additions and 2 deletions
|
@ -646,13 +646,13 @@ var _ = framework.IngressNginxDescribe("[Flag] ingress-class", func() {
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.It("should watch Ingress with matched Ingress.Spec.IngressClassName and CLI parameter --ingress-class", func() {
|
ginkgo.It("should watch Ingress with matched Ingress.Spec.IngressClassName and CLI parameter --ingress-class", func() {
|
||||||
validHost := fooHost
|
validHost := "validhostnameforingressclassname"
|
||||||
|
|
||||||
ing := framework.NewSingleIngress(validHost, "/", validHost, f.Namespace, framework.EchoService, 80, nil)
|
ing := framework.NewSingleIngress(validHost, "/", validHost, f.Namespace, framework.EchoService, 80, nil)
|
||||||
f.EnsureIngress(ing)
|
f.EnsureIngress(ing)
|
||||||
|
|
||||||
f.WaitForNginxConfiguration(func(cfg string) bool {
|
f.WaitForNginxConfiguration(func(cfg string) bool {
|
||||||
return !strings.Contains(cfg, "server_name noclassforyou")
|
return !strings.Contains(cfg, "server_name "+validHost)
|
||||||
})
|
})
|
||||||
|
|
||||||
f.HTTPTestClient().
|
f.HTTPTestClient().
|
||||||
|
|
Loading…
Reference in a new issue