You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "mengw15 (via GitHub)" <gi...@apache.org> on 2026/07/31 12:11:47 UTC

[I] add unit test coverage for UserQuotaResource [texera]

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: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] add unit test coverage for UserQuotaResource [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7162:
URL: https://github.com/apache/texera/issues/7162#issuecomment-5142723515

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @mengw15!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] add unit test coverage for UserQuotaResource [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 closed issue #7162: add unit test coverage for UserQuotaResource
URL: https://github.com/apache/texera/issues/7162


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org