Merge pull request #4221 from aledbf/upgrade-nginx-image
Switch to openresty image
This commit is contained in:
commit
5dfc7e211f
12 changed files with 43 additions and 23 deletions
|
|
@ -72,7 +72,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Redirect", func() {
|
|||
Expect(errs).To(BeNil())
|
||||
Expect(resp.StatusCode).Should(BeNumerically("==", http.StatusMovedPermanently))
|
||||
Expect(resp.Header.Get("Location")).Should(Equal(redirectURL))
|
||||
Expect(body).Should(ContainSubstring("nginx/"))
|
||||
Expect(body).Should(ContainSubstring("openresty/"))
|
||||
})
|
||||
|
||||
It("should respond with a custom redirect code", func() {
|
||||
|
|
@ -108,6 +108,6 @@ var _ = framework.IngressNginxDescribe("Annotations - Redirect", func() {
|
|||
Expect(errs).To(BeNil())
|
||||
Expect(resp.StatusCode).Should(BeNumerically("==", redirectCode))
|
||||
Expect(resp.Header.Get("Location")).Should(Equal(redirectURL))
|
||||
Expect(body).Should(ContainSubstring("nginx/"))
|
||||
Expect(body).Should(ContainSubstring("openresty/"))
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -128,6 +128,20 @@ func (f *Framework) AfterEach() {
|
|||
Expect(err).ToNot(HaveOccurred())
|
||||
By("Dumping NGINX logs after a failure running a test")
|
||||
Logf("%v", log)
|
||||
|
||||
pod, err := getIngressNGINXPod(f.Namespace, f.KubeClientSet)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
cmd := fmt.Sprintf("cat /etc/nginx/nginx.conf")
|
||||
o, err := f.ExecCommand(pod, cmd)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
By("Dumping NGINX configuration after a failure running a test")
|
||||
Logf("%v", o)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue