Documentation
¶
Index ¶
- func AssertJsonKeyPresentInResponse(t *testing.T, response *httptest.ResponseRecorder, expectedStatus int, ...)
- func AssertResponse(t *testing.T, response *httptest.ResponseRecorder, expectedStatus int, ...)
- func AssertResponseStatus(t *testing.T, response *httptest.ResponseRecorder, expectedStatus int)
- func SetupHostname(t *testing.T, hostname string)
- func SetupPodName(t *testing.T, podName string)
- func SetupTestRouter() *gin.Engine
- func WrappedTestCase(test func(t *testing.T, tc *WrappedTestClient)) func(*testing.T)
- type WrappedTestClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertResponse ¶
func AssertResponseStatus ¶
func AssertResponseStatus(t *testing.T, response *httptest.ResponseRecorder, expectedStatus int)
func SetupHostname ¶
func SetupPodName ¶
func SetupTestRouter ¶
func WrappedTestCase ¶
func WrappedTestCase(test func(t *testing.T, tc *WrappedTestClient)) func(*testing.T)
Types ¶
type WrappedTestClient ¶
func NewTestClient ¶
func NewTestClient() *WrappedTestClient
func (*WrappedTestClient) PerformRequest ¶
func (tc *WrappedTestClient) PerformRequest(method, path string, body interface{}, headers map[string]string) *httptest.ResponseRecorder
Click to show internal directories.
Click to hide internal directories.