HTTPAuthDo makes an HTTP request with an appropriate authorization header for a user with a specific DB
(t *testing.T, db *gorm.DB, req *http.Request, user database.User)
| 152 | |
| 153 | // HTTPAuthDo makes an HTTP request with an appropriate authorization header for a user with a specific DB |
| 154 | func HTTPAuthDo(t *testing.T, db *gorm.DB, req *http.Request, user database.User) *http.Response { |
| 155 | SetReqAuthHeader(t, db, req, user) |
| 156 | |
| 157 | return HTTPDo(t, req) |
| 158 | } |
| 159 | |
| 160 | // MakeReq makes an HTTP request and returns a response |
| 161 | func MakeReq(endpoint string, method, path, data string) *http.Request { |