Documentation ¶
Index ¶
- func CassettePath(cassetteName string) string
- func CreateMultipartRequestInfo(filePath string, contentType string) (http.Header, *bytes.Buffer)
- func DeleteRedisJobs()
- func GetBody(response *httptest.ResponseRecorder) string
- func GetFlash(cookies []*http.Cookie) *web.FlashData
- func GetJSONBody(response *httptest.ResponseRecorder) map[string]interface{}
- func GetMultipartAttributesFromFile(filePath string, contentType string) (multipart.File, *multipart.FileHeader, error)
- func GetWorkerClient() *work.Client
- func MakeAuthenticatedRequest(method string, url string, headers http.Header, body io.Reader, ...) *httptest.ResponseRecorder
- func MakeRequest(method string, url string, body io.Reader) *httptest.ResponseRecorder
- func MakeRequestWithBasicAuthentication(method string, url string, body io.Reader) *httptest.ResponseRecorder
- func TruncateTables(tables ...string)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CassettePath ¶
func DeleteRedisJobs ¶
func DeleteRedisJobs()
func GetBody ¶
func GetBody(response *httptest.ResponseRecorder) string
func GetJSONBody ¶
func GetJSONBody(response *httptest.ResponseRecorder) map[string]interface{}
func GetWorkerClient ¶
func MakeAuthenticatedRequest ¶
func MakeAuthenticatedRequest(method string, url string, headers http.Header, body io.Reader, userInfo *UserInfo) *httptest.ResponseRecorder
MakeAuthenticatedRequest makes a HTTP request with authenticated user and returns response
func MakeRequest ¶
MakeRequest makes a HTTP request and returns response
func MakeRequestWithBasicAuthentication ¶
func MakeRequestWithBasicAuthentication(method string, url string, body io.Reader) *httptest.ResponseRecorder
MakeRequest makes a HTTP request with basic authentication and returns response
func TruncateTables ¶
func TruncateTables(tables ...string)
Types ¶
Click to show internal directories.
Click to hide internal directories.