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

   ### Task Summary
   
   Add `cu-image.service.spec.ts` for `CuImageService` and the two helpers 
exported next to it. The file has no spec. The admin image page and the 
computing-unit create modal both build on it, and both specs mock it, so 
nothing pins its URLs or the helpers.
   
   ## Behavior to pin
   
   | Member | Contract |
   | --- | --- |
   | `isStartable(image)` | `true` only for `READY`; `false` for `PENDING`, 
`VALIDATING`, `FAILED` |
   | `isInProgress(image)` | `true` for `PENDING` and `VALIDATING`; `false` for 
`READY`, `FAILED` |
   | `list()` | `GET {api}/cu-image` |
   | `create(name, sourceRef)` | `POST {api}/cu-image` with body `{ name, 
sourceRef }` |
   | `refresh(iid)` | `POST {api}/cu-image/{iid}/refresh` with `{}` |
   | `log(iid)` | `GET {api}/cu-image/{iid}/log` |
   | `delete(iid)` | `DELETE {api}/cu-image/{iid}` |
   | error | an HTTP error reaches the subscriber unchanged |
   
   Use `HttpTestingController`, as the other service specs do.
   
   ## Scope
   
   - New spec: 
`frontend/src/app/dashboard/service/admin/cu-image/cu-image.service.spec.ts`.
   - No production-code changes.
   
   ### 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