Since dynamic mode only checking for 'return 503' is not valid anymore
This commit is contained in:
parent
eaa91b0f0f
commit
2f71c12add
6 changed files with 16 additions and 31 deletions
|
|
@ -46,8 +46,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Alias", func() {
|
|||
|
||||
f.WaitForNginxServer(host,
|
||||
func(server string) bool {
|
||||
return Expect(server).Should(ContainSubstring("server_name foo")) &&
|
||||
Expect(server).ShouldNot(ContainSubstring("return 503"))
|
||||
return Expect(server).Should(ContainSubstring("server_name foo"))
|
||||
})
|
||||
|
||||
resp, body, errs := gorequest.New().
|
||||
|
|
@ -80,8 +79,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Alias", func() {
|
|||
|
||||
f.WaitForNginxServer(host,
|
||||
func(server string) bool {
|
||||
return Expect(server).Should(ContainSubstring("server_name foo")) &&
|
||||
Expect(server).ShouldNot(ContainSubstring("return 503"))
|
||||
return Expect(server).Should(ContainSubstring("server_name foo"))
|
||||
})
|
||||
|
||||
hosts := []string{"foo", "bar"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue