Add e2e test suite to detect memory leaks in lua

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-06-27 10:03:20 -04:00
parent 2586542608
commit 591887089f
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 259 additions and 47 deletions

View file

@ -147,7 +147,12 @@ func (f *Framework) AfterEach() {
// IngressNginxDescribe wrapper function for ginkgo describe. Adds namespacing.
func IngressNginxDescribe(text string, body func()) bool {
return Describe("[nginx-ingress] "+text, body)
return Describe("[ingress-nginx] "+text, body)
}
// MemoryLeakIt is wrapper function for ginkgo It. Adds "[MemoryLeak]" tag and makes static analysis easier.
func MemoryLeakIt(text string, body interface{}, timeout ...float64) bool {
return It(text+" [MemoryLeak]", body, timeout...)
}
// GetNginxIP returns the number of TCP port where NGINX is running