set ingressClassName and fix unitest issue
This commit is contained in:
parent
8ef4db3618
commit
cae5005579
1 changed files with 2 additions and 0 deletions
|
@ -647,8 +647,10 @@ 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 := "validhostnameforingressclassname"
|
validHost := "validhostnameforingressclassname"
|
||||||
|
testIngressClassName := "test-new-ingress-class"
|
||||||
|
|
||||||
ing := framework.NewSingleIngress(validHost, "/", validHost, f.Namespace, framework.EchoService, 80, nil)
|
ing := framework.NewSingleIngress(validHost, "/", validHost, f.Namespace, framework.EchoService, 80, nil)
|
||||||
|
ing.Spec.IngressClassName = &testIngressClassName
|
||||||
f.EnsureIngress(ing)
|
f.EnsureIngress(ing)
|
||||||
|
|
||||||
f.WaitForNginxConfiguration(func(cfg string) bool {
|
f.WaitForNginxConfiguration(func(cfg string) bool {
|
||||||
|
|
Loading…
Reference in a new issue