In case of errors running e2e tests, print the generated nginx.conf file
This commit is contained in:
parent
ca6b61f639
commit
dca5557c50
1 changed files with 14 additions and 0 deletions
|
@ -128,6 +128,20 @@ func (f *Framework) AfterEach() {
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
By("Dumping NGINX logs after a failure running a test")
|
By("Dumping NGINX logs after a failure running a test")
|
||||||
Logf("%v", log)
|
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…
Reference in a new issue