Documentation ¶
Overview ¶
This package provides utilities to simplify other `_test` packages
Index ¶
- func DummyClientset() *fakeclientset.Clientset
- func DummyExtension(endpoints ...string) *httptest.Server
- 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 ObjectListDeepEqual(expectedListPointer interface{}, actualListPointer interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyClientset ¶
func DummyClientset() *fakeclientset.Clientset
func DummyExtension ¶
Takes list of endpoints and returns test server that serves each
func DummyHTTPRequest ¶
func DummyK8sClientset ¶
func DummyK8sClientset() *fakek8sclientset.Clientset
func DummyResource ¶
func DummyServer ¶
Use alongside DummyHTTPRequest
func ObjectListDeepEqual ¶
func ObjectListDeepEqual(expectedListPointer interface{}, actualListPointer interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.