Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 v0.3.0 Jan 12, 2017 Changes in this version + var DBDriver string + func AuthHeaders(t *testing.T, u *sdk.User, pass string) http.Header + func AuthentifyRequest(t *testing.T, req *http.Request, u *sdk.User, pass string) + func AuthentifyRequestFromWorker(t *testing.T, req *http.Request, w *sdk.Worker) + func DeleteTestProject(t *testing.T, db database.QueryExecuter, key string) error + func InsertAdminUser(t *testing.T, db *sql.DB) (*sdk.User, string) + func InsertLambaUser(t *testing.T, db database.QueryExecuter, groups ...*sdk.Group) (*sdk.User, string) + func InsertTestProject(t *testing.T, db database.QueryExecuter, key, name string) *sdk.Project + func LocalAuth(t *testing.T) auth.Driver + func NewAuthentifiedRequest(t *testing.T, u *sdk.User, pass, method, uri string, i interface{}) *http.Request + func NewAuthentifiedRequestFromWorker(t *testing.T, w *sdk.Worker, method, uri string, i interface{}) *http.Request + func NoError(t *testing.T, err error, msg ...interface{}) + func NotEmpty(t *testing.T, i interface{}, msg ...interface{}) + func NotNil(t *testing.T, i interface{}, msg ...interface{}) + func RandomString(t *testing.T, strlen int) string + func Setup(testname string, t *testing.T) *sql.DB + func SetupPG(t *testing.T, bootstrapFunc ...bootstrap) *sql.DB