test(users, settings): add e2e tests for ResetUsedSpace and WorkerQueueLen
This commit is contained in:
parent
4dcd2c56ca
commit
21593af444
10 changed files with 165 additions and 44 deletions
|
@ -187,3 +187,12 @@ func (cl *SingleUserClient) IsAuthed(token *http.Cookie) (*http.Response, string
|
|||
AddCookie(token).
|
||||
End()
|
||||
}
|
||||
|
||||
func (cl *SingleUserClient) ResetUsedSpace(userID uint64, token *http.Cookie) (*http.Response, string, []error) {
|
||||
return cl.r.Put(cl.url("/v1/users/used-space")).
|
||||
Send(multiusers.ResetUsedSpaceReq{
|
||||
UserID: userID,
|
||||
}).
|
||||
AddCookie(token).
|
||||
End()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue