Skip to content

Implement GET /cvds/{group}/{name} endpoint#2607

Merged
SuperStrongDinosaur merged 1 commit into
google:mainfrom
SuperStrongDinosaur:cvd_status_v2
May 28, 2026
Merged

Implement GET /cvds/{group}/{name} endpoint#2607
SuperStrongDinosaur merged 1 commit into
google:mainfrom
SuperStrongDinosaur:cvd_status_v2

Conversation

@SuperStrongDinosaur
Copy link
Copy Markdown
Collaborator

Implement the GET /cvds/{group}/{name} endpoint in the host orchestrator to allow retrieving a specific CVD instance by its group and name.

This is achieved by:

  • Extending ListCVDsActionOpts and ListCVDsAction to support filtering by CVD name.
  • Updating listCVDsHandler.Handle to extract the name variable from the request and pass it to ListCVDsActionOpts.
  • Registering the GET /cvds/{group}/{name} route in Controller.AddRoutes using listCVDsHandler.
  • Adding unit tests in listcvdsaction_test.go to verify the filtering logic and error handling (404 when not found).
  • Adding a routing test in controller_test.go to ensure the new endpoint is correctly registered.

This change preserves the original behavior of GET /cvds and GET /cvds/{group}.

@SuperStrongDinosaur SuperStrongDinosaur marked this pull request as ready for review May 26, 2026 11:37
Comment thread frontend/src/host_orchestrator/orchestrator/listcvdsaction.go Outdated
@SuperStrongDinosaur SuperStrongDinosaur added kokoro:run Run e2e tests. go Pull requests that update Go code labels May 27, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label May 27, 2026
@SuperStrongDinosaur SuperStrongDinosaur added kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. and removed kokoro:run Run e2e tests. labels May 27, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label May 28, 2026
@SuperStrongDinosaur SuperStrongDinosaur added this pull request to the merge queue May 28, 2026
Merged via the queue into google:main with commit d9af5a9 May 28, 2026
32 checks passed
@SuperStrongDinosaur SuperStrongDinosaur deleted the cvd_status_v2 branch May 28, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants