mengw15 opened a new issue, #7163: URL: https://github.com/apache/texera/issues/7163
### Task Summary `AdminUserResource` (`amber/src/main/scala/org/apache/texera/web/resource/dashboard/admin/user/AdminUserResource.scala`, codecov ~0%) has no spec. jOOQ-backed admin user management; add a spec on embedded Postgres via `MockTexeraDB` (see #6714). ### Behavior to add `class AdminUserResourceSpec … with MockTexeraDB`; seed users via `UserDao` in `beforeEach`, `new AdminUserResource()`, cover: - `list` — returns all users; assert the seeded users (email, name, role) appear. - `addUser` — creates a user; assert it is persisted (and any default role/quota). - `updateUser` — updates a user's fields; assert the change round-trips via a re-read. - `getCreatedWorkflow` / `getAccessedWorkflow` — the per-user created/accessed workflow lists (seed workflows for the user). - `getUserQuota` — the per-user quota view. - `deleteCollection` — deletes the target collection and assert removal. Cover empty and populated cases. ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [x] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
