Documentation ¶
Index ¶
- Constants
- func DoRequest(t *testing.T, r *http.Request) *httptest.ResponseRecorder
- func FakeAuthHandler(t *testing.T, username string, referer string, isAdmin bool, isSystem bool) gin.HandlerFunc
- func Handle(t *testing.T, method, path string, handler ...gin.HandlerFunc)
- func Init(t *testing.T)
- func RandomString(t *testing.T, strlen int) string
- func Router(t *testing.T) *gin.RouterGroup
- func TATClient(t *testing.T, username string) *tat.Client
Constants ¶
View Source
const AdminUser = "tat.integration.tests.admin"
AdminUser used for integration tests
Variables ¶
This section is empty.
Functions ¶
func FakeAuthHandler ¶
func FakeAuthHandler(t *testing.T, username string, referer string, isAdmin bool, isSystem bool) gin.HandlerFunc
FakeAuthHandler initiliazes gin context for tests
func Handle ¶
func Handle(t *testing.T, method, path string, handler ...gin.HandlerFunc)
Handle associates a method & path on an handler (h)
func RandomString ¶
RandomString have to be used only for tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.