test: add permission tests - users APIs
This commit is contained in:
parent
7473d5ce5d
commit
980bceb090
2 changed files with 265 additions and 0 deletions
|
@ -171,3 +171,9 @@ func (cl *SingleUserClient) SetPreferences(prefers *userstore.Preferences, token
|
|||
AddCookie(token).
|
||||
End()
|
||||
}
|
||||
|
||||
func (cl *SingleUserClient) IsAuthed(token *http.Cookie) (*http.Response, string, []error) {
|
||||
return cl.r.Get(cl.url("/v1/users/isauthed")).
|
||||
AddCookie(token).
|
||||
End()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue