test: restructure WepApiTest.http with three clearly separated users
The test file now creates three distinct users at the start: - admin (seeded, admin/admin) - curator (created by admin, accessLevel=1) - user (registered via /api/auth/register, accessLevel=0) Each user has its own token variable (admin_token, curator_token, user_token) and ID variable (admin_id, curator_id, user_id). Sections are organized: Setup → Auth → User CRUD → Person → Album → Tag → Asset → Stats → Settings → Cleanup. All endpoints are tested at each appropriate authorization level: admin (full access), curator (elevated access), user (own data only), and anonymous (public data only).
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"dev": {
|
||||
"rngUser": "preFilledValue",
|
||||
"rngPassword": "preFilledValue"
|
||||
"userName": "preFilledValue",
|
||||
"userPwd": "preFilledValue",
|
||||
"curatorName": "preFilledValue",
|
||||
"curatorPwd": "preFilledValue"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user