Skip to content

feat(mock): stub the WES API #591

Open

Description

@uniqueg

Why

None of the three WES previews (runs, run, run create) works: there is no
public anonymous WES instance, so they show a notice.

What to do

Under /ga4gh/wes/v1, with fixtures of runs in several states (QUEUED,
RUNNING, COMPLETE, EXECUTOR_ERROR, CANCELED) and stable IDs:

  • GET /service-info (workflow types and versions the create form offers)
  • GET /runs with page_size and page_token (next_page_token)
  • POST /runs (multipart form as sent by RestWesProvider.runWorkflow,
    including optional workflow_attachment files, which are discarded):
    returns {run_id}, the new run appears as QUEUED
  • GET /runs/{id}, GET /runs/{id}/status, POST /runs/{id}/cancel
  • Log and output URLs in the run logs point to small fixture texts served by
    the mock itself, not to external hosts
  • Integration tests per endpoint; update the docs' endpoint list.

Done when

  • Runs list with paging, run detail, cancel and run creation work against the mock
  • Tests pass in CI
  • Docs list the endpoints and fixture IDs

Metadata

Metadata

Assignees

Labels

priority: lowstatus: blockedtype: featureworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions