Cleanup and standardization of e2e test definitions (#5090)
This commit is contained in:
parent
45c9f94b17
commit
cc318cdec1
76 changed files with 90 additions and 133 deletions
|
|
@ -148,6 +148,16 @@ func IngressNginxDescribe(text string, body func()) bool {
|
|||
return ginkgo.Describe(text, body)
|
||||
}
|
||||
|
||||
// DescribeAnnotation wrapper function for ginkgo describe. Adds namespacing.
|
||||
func DescribeAnnotation(text string, body func()) bool {
|
||||
return ginkgo.Describe("[Annotations] "+text, body)
|
||||
}
|
||||
|
||||
// DescribeSetting wrapper function for ginkgo describe. Adds namespacing.
|
||||
func DescribeSetting(text string, body func()) bool {
|
||||
return ginkgo.Describe("[Setting] "+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 ginkgo.It(text+" [MemoryLeak]", body, timeout...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue