mengw15 opened a new pull request, #7223:
URL: https://github.com/apache/texera/pull/7223
### What changes were proposed in this PR?
Extends the existing `MockTexeraDB`-backed `PveResourceSpec` to cover the
`PveResource` endpoints that were still untested. The spec already covered
`savePve`, `listPves`, `updatePve`, `deletePveFromDb`, and
`deleteEnvironments`,
so this adds the remaining three (5 tests), staying on the metadata /
mocked-process
path (no real virtualenv):
- `getSystemPackages` — wraps the manager's list under a `"system"` key.
- `fetchPVEs` — returns 400 when the `cuid` query parameter is missing, and
the
computing unit's environments otherwise.
- `deletePackage` — returns 200 when the uninstall succeeds and 400 when the
target is a system package.
No production code was changed.
### Any related issues, documentation, discussions?
Closes #7179.
### How was this PR tested?
`sbt "WorkflowExecutionService/testOnly *PveResourceSpec"` — 30 passed (25
existing
+ 5 new), run twice for determinism against the embedded Postgres with
`PveManager.runProcess` mocked (no real pip/venv). The failure path was
verified by
breaking an assertion (1 failed, non-zero exit), and `Test/scalafmtCheck` +
`Test/scalafix --check` are clean.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])
--
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]