mengw15 opened a new issue, #7162:
URL: https://github.com/apache/texera/issues/7162

   ### Task Summary
   
   `UserQuotaResource` 
(`amber/src/main/scala/org/apache/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala`,
 codecov ~0%) has no spec — all lines unhit. jOOQ-backed; add a spec on 
embedded Postgres via `MockTexeraDB` (see #6714).
   
   ### Behavior to add
   
   `class UserQuotaResourceSpec … with MockTexeraDB`; `beforeAll { 
initializeDBAndReplaceDSLContext() }`; `beforeEach` builds the DAOs (user, 
workflow, dataset, execution) + `new UserQuotaResource()`. Seed a user with 
some workflows / datasets / executions and cover:
   
   - `getUserQuota` — the aggregate quota view for the user (assert the 
assembled counts/sizes).
   - `getUserCreatedWorkflow` / `getCreatedWorkflow` / 
`getUserAccessedWorkflow` / `getAccessedWorkflow` — the created-vs-accessed 
workflow lists for the user.
   - `getCreatedDatasets` — datasets created by the user.
   - `getUserQuotaSize` — the total size figure.
   - `deleteExecutionCollection` / `deleteCollection` — delete an execution 
collection and assert the rows are gone.
   
   Cover the empty case (no rows → empty lists / zero) and the populated case 
for each.
   
   ### 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]

Reply via email to