Fix http default backend test
This commit is contained in:
parent
5f14abced0
commit
c6b800e391
1 changed files with 18 additions and 16 deletions
|
@ -63,7 +63,8 @@ var _ = framework.IngressNginxDescribe("[Default Backend]", func() {
|
||||||
framework.Sleep()
|
framework.Sleep()
|
||||||
|
|
||||||
for _, test := range testCases {
|
for _, test := range testCases {
|
||||||
ginkgo.By(test.Name, func() {
|
ginkgo.By(test.Name)
|
||||||
|
framework.Logf("test running is %s", test.Name)
|
||||||
var req *httpexpect.HTTPRequest
|
var req *httpexpect.HTTPRequest
|
||||||
|
|
||||||
switch test.Scheme {
|
switch test.Scheme {
|
||||||
|
@ -79,9 +80,10 @@ var _ = framework.IngressNginxDescribe("[Default Backend]", func() {
|
||||||
req.WithHeader("Host", test.Host)
|
req.WithHeader("Host", test.Host)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
framework.Logf("test running req is %+v", req.Request)
|
||||||
|
|
||||||
req.Expect().
|
req.Expect().
|
||||||
Status(test.Status)
|
Status(test.Status)
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue