Add framework.ConformanceIt as the new way to declare conformance tests.

Also rewrite all existing conformance tests to use this.
This commit is contained in:
Matt Liggett
2017-10-26 10:46:09 -07:00
parent 6d73f03d2b
commit a5967cbaf1
29 changed files with 155 additions and 154 deletions

View File

@@ -634,6 +634,11 @@ func KubeDescribe(text string, body func()) bool {
return Describe("[k8s.io] "+text, body)
}
// Wrapper function for ginkgo It. Adds "[Conformance]" tag and makes static analysis easier.
func ConformanceIt(text string, body interface{}, timeout ...float64) bool {
return It(text+" [Conformance]", body, timeout...)
}
// 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.