diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index c8ba3aa0879..3cee43cb226 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -529,11 +529,6 @@ func (kc *KubeConfig) FindCluster(name string) *KubeCluster { return nil } -// ConformanceIt is wrapper function for ginkgo It. Adds "[Conformance]" tag and makes static analysis easier. -func ConformanceIt(text string, body interface{}) bool { - return ginkgo.It(text+" [Conformance]", ginkgo.Offset(1), body) -} - // PodStateVerification represents a verification of pod state. // Any time you have a set of pods that you want to operate against or query, // this struct can be used to declaratively identify those pods. diff --git a/test/e2e/framework/ginkgowrapper.go b/test/e2e/framework/ginkgowrapper.go index ebeea8acce9..e35fc4ae982 100644 --- a/test/e2e/framework/ginkgowrapper.go +++ b/test/e2e/framework/ginkgowrapper.go @@ -20,6 +20,7 @@ import ( "path" "reflect" + "github.com/onsi/ginkgo/v2" "github.com/onsi/ginkgo/v2/types" apierrors "k8s.io/apimachinery/pkg/api/errors" @@ -63,3 +64,9 @@ func AnnotatedLocationWithOffset(annotation string, offset int) types.CodeLocati codeLocation = types.NewCustomCodeLocation(annotation + " | " + codeLocation.String()) return codeLocation } + +// ConformanceIt is wrapper function for ginkgo It. Adds "[Conformance]" tag and makes static analysis easier. +func ConformanceIt(text string, args ...interface{}) bool { + args = append(args, ginkgo.Offset(1)) + return ginkgo.It(text+" [Conformance]", args...) +}