Documentation ¶
Overview ¶
Package testutils provides utilities to simplify other `_test` packages
Index ¶
- func DummyDynamicClientset() *fakedynamicclientset.FakeDynamicClient
- func DummyHTTPRequest(method string, url string, body io.Reader) *http.Request
- func DummyK8sClientset() *fakek8sclientset.Clientset
- func DummyResource() *endpoints.Resource
- func DummyServer() (*httptest.Server, *endpoints.Resource, string)
- func GetClusterObject(version, kind, name, resourceVersion string) *unstructured.Unstructured
- func GetObject(version, kind, namespace, name, resourceVersion string) *unstructured.Unstructured
- func ObjectListDeepEqual(expectedListPointer interface{}, actualListPointer interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyDynamicClientset ¶ added in v0.14.0
func DummyDynamicClientset() *fakedynamicclientset.FakeDynamicClient
DummyK8sClientset returns a fake K8s clientset
func DummyHTTPRequest ¶
DummyHTTPRequest returns a HTTP request with a JSON content type header as well as the configured with the parameters
func DummyK8sClientset ¶
func DummyK8sClientset() *fakek8sclientset.Clientset
DummyK8sClientset returns a fake K8s clientset
func DummyResource ¶
DummyResource returns a Resource populated by fake clientsets
func DummyServer ¶
DummyServer returns a httptest server of the Tekton Dashboard
func GetClusterObject ¶ added in v0.14.0
func GetClusterObject(version, kind, name, resourceVersion string) *unstructured.Unstructured
func GetObject ¶ added in v0.14.0
func GetObject(version, kind, namespace, name, resourceVersion string) *unstructured.Unstructured
func ObjectListDeepEqual ¶
func ObjectListDeepEqual(expectedListPointer interface{}, actualListPointer interface{}) error
ObjectListDeepEqual errors if the two object lists are not equal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.