mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-25 11:31:44 +00:00
clean up deprecated funcs in e2e framework
This commit is contained in:
parent
cdc026fad1
commit
137ad9bf2b
@ -363,24 +363,3 @@ func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) {
|
||||
}
|
||||
Fail(prefix+err.Error(), 1+offset)
|
||||
}
|
||||
|
||||
// ExpectConsistOf expects actual contains precisely the extra elements. The ordering of the elements does not matter.
|
||||
//
|
||||
// Deprecated: use gomega.Expect().To(gomega.ConsistOf()) instead
|
||||
func ExpectConsistOf(actual interface{}, extra interface{}, explain ...interface{}) {
|
||||
gomega.ExpectWithOffset(1, actual).To(gomega.ConsistOf(extra), explain...)
|
||||
}
|
||||
|
||||
// ExpectHaveKey expects the actual map has the key in the keyset
|
||||
//
|
||||
// Deprecated: use gomega.Expect().To(gomega.HaveKey()) instead
|
||||
func ExpectHaveKey(actual interface{}, key interface{}, explain ...interface{}) {
|
||||
gomega.ExpectWithOffset(1, actual).To(gomega.HaveKey(key), explain...)
|
||||
}
|
||||
|
||||
// ExpectEmpty expects actual is empty
|
||||
//
|
||||
// Deprecated: use gomega.Expect().To(gomega.BeEmpty()) instead
|
||||
func ExpectEmpty(actual interface{}, explain ...interface{}) {
|
||||
gomega.ExpectWithOffset(1, actual).To(gomega.BeEmpty(), explain...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user