Since dynamic mode only checking for 'return 503' is not valid anymore

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-11-30 09:37:48 -03:00
parent eaa91b0f0f
commit 2f71c12add
6 changed files with 16 additions and 31 deletions

View file

@ -53,8 +53,7 @@ var _ = framework.IngressNginxDescribe("Annotations - canary", 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"))
})
canaryAnnotations := map[string]string{
@ -90,8 +89,7 @@ var _ = framework.IngressNginxDescribe("Annotations - canary", 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"))
})
canaryAnnotations := map[string]string{
@ -129,8 +127,7 @@ var _ = framework.IngressNginxDescribe("Annotations - canary", 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"))
})
canaryAnnotations := map[string]string{
@ -168,8 +165,7 @@ var _ = framework.IngressNginxDescribe("Annotations - canary", 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"))
})
canaryAnnotations := map[string]string{